How do I move the block in various directions?

0 favourites
  • 6 posts
From the Asset Store
Physics Block Puzzle game template for Construct 3
  • As per below screenshot how do I make it so when the player collides with the block, depending on which side, e.g. North, South, West, East that the player collides on it then starts moving the block in that direction? Tried all forms of movement behaviour except physics as could not figure out how to stop it falling off screen. The image is the closed I got it but only able to push the block at point West.

    URL incase above don't work:

  • I saw a tutorial about it once. I think you can find it easily too.

    But anyway, the easiest way to do that in my opinion is to put at the block the platformer behavior, set it speed to be less than then player's speed, disable the default commands so the player can control the main char but the block itself, then anytime the player collides with the block you simulate the block to move the same direction as the player.

    The collision will be more smooth if you create invisible objects around the box to be pushed for the player to collide with.

    I don't know if I'm being clear enough, but give this a though and try and play a little, and if you still don't manage to do it come back here

  • Tried all that still, don't work, I found various tutorial on it for a 2d platformer but not for pushing it in all four directions, as in top down view which is what I am trying to achieve.

  • Here friend, see if this helps: ... 20Box.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok that works. Many thanks. Two follow up questions:

    1.) How would I stop the player bouncing a little when it comes into collision with the red collision blocks?

    2.) Where is the pin behaviour, I can not see it anywhere on my add behaviour dialogue?

  • Actually ignore number 2 I figured that out, still upon collision how do I stop it bouncing?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)