How do I Block an object like a real wall?

0 favourites
  • 4 posts
From the Asset Store
Wall Pin Board is a hyper causal game developed for fun and inspired by YouTube video whose link is given in description
  • Hello!

    I have just added collision behavior on my objects. I am using mouse to drag-and-drop them around the screen. I have also created transparent/invisible objects that are supposed to be immovable and block the other objects.

    This block object really blocks them... but while dragging the objects the system let me to overlap this "wall" and only moves the object to an available place if I release the mouse button.

    I can't allow the player to drag this objects over the walls.

    Any ideas?


  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes! IMHO, add condition: When "object" collides with "wall" ==> Add action: "Object" Drop.

    Hope it will help!

  • Hi Naji! Thanks for the reply!

    Well... I tried that... but the object stops in all directions. I would like it to still be able to slide on the walls.

    For instance:

    The player has a wall above the object, still it is dragging it towards the wall but a little bit to its right.. so the object would I least move to the right. =)

    I would love to see it working with only behaviors. In a matter of fact it works... but Dragging let's the object to overlap the walls (even though it bounces it off later).


  • I need an object (wall)) that makes it impossible for another (player token) one to overlap it. At the same time, the Token cannot just stop its movements.. it has to slide.

    One more thing, when I have more than 1 token, while dragging them around, they are able to overlap each other, even with collision enabled!

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