dop2000's Forum Posts

  • Did you set Bullet=Yes in Physics properties for both the flipper and the ball?

    Also, how do you move the flipper? You should only do it with Physics actions (apply torque, force, impulse etc.), not by directly changing its angle!

  • If you have access to one of these phones, try getting LogCat log from it. There is a good possibility you'll see the error message in the log.

  • If every enemy should have a pistol, add them to a container. Then the code will be very simple:

    On every tick - Pistol set position to Enemy.imagePointX("gun"),Enemy.imagePointY("gun")

    You won't need "For each" loop, won't need to link them by UID.

  • https://editor.construct.net/#open=template-eat-em-all

    You can copy all events to C2.

  • On Enemy destroyed
    Repeat 10 times
    	Create Cube at (Enemy.x+random(-50,50), Enemy.y+random(-50,50))
    	Cube disable physics collision with Cube
    	Cube set scale to random(0.5, 1.5)
    	Cube apply impulse random(1,2) at angle random(200,340)
    	Cube set angular velocity to random(-300,300)
    	... etc.
    

    Of course, you will need to experiment with all these values and Physics settings (density, damping etc.)

  • My own version of what? What have you tried?

    If you want to try Physics - create a number of cubes in a loop, for each cube set random scale, apply random impulse at random angle, random torque or angular velocity.

  • It's not really a loop. You just need to increment the LEVEL variable when some conditions are met (all coins collected, all enemies killed). And then you can start a new level, creating a number of new coins/enemies, which is based on the LEVEL value.

    So your code may look something like this:

    On start of layout
    	Repeat (LEVEL) times	: Create Enemy
    	Repeat (LEVEL*2) times	: Create Coin
    
    
    On Enemy destroyed
    if Enemy.count=1 // last enemy killed
    	Wait 1 second
    	Add 1 to LEVEL
    	Restart layout
    	
    
  • Another option is to add RoomInside object to a family. Then you will be able to pick two separate instances in the same event.

    Pick RoomInside instance N
    	Pick FamilyRoomInside instance (RoomInside.IID+1)
    	...........
    
  • You can style TextInput with CSS - use "Set CSS style" action.

    Another option is to make your own text input using text or sprite font, then you will be able to use bbcode.

  • Post a comment. Then click "Edit" above your comment. Then you will be able to insert a picture. It's a bug on the forum:

    github.com/Scirra/Construct.net-website-bugs/issues/135

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Try Physics. Disable cubes collisions with other cubes, they should only collide with the immovable ground.

    Or you can use Bullet behavior with gravity and Bounce off solids=yes. On Collision with the ground reduce bullet speed. It will not look that nice, but should have better performance.

  • No, the second event should be "On Player Collision with MainTrack".

  • You mean if the player stays close to the wall after the collision, it should be destroyed after 5 seconds? But if it moves further from the wall, it will not be destroyed?

    You can pin another invisible sprite to the player, with slightly bigger collision polygon. When player collides with the wall, start a Timer "destroy" for 5 seconds.

    On "destroy" Timer event - destroy the player.

    If the timer "destroy" is running, but that invisible sprite is no longer overlapping the wall, stop the "destroy" timer.

  • I'm guessing tilemaps are not rendered when they are outside of the viewport, so it will not be possible to paste them on canvas/paster object. There are two solutions -

    1. Temporarily move tilemaps for player 2 to the viewport, paste them, and move back to their original position. This can all be done in one tick. Don't know if this can cause problems with player #1, maybe you'll also need to temporarily disable collisions.

    2. Keep the tilemaps for player 2 on the screen, but make them invisible, or put them on an invisible layer. Seems like invisible tilemap can be pasted on Paster.

  • It's hard to understand what's going on in your game, but I believe the problem is that SectorDefence sprite is solid. So the virus sprites are trying to walk around it. When I removed Solid behavior, viruses walked straight to its center.