How do I detect the outside/edge blocks

Get help using Construct 2

Post » Sun Nov 09, 2014 3:49 pm

Hello, so i wanted to kinda detect the blocks that are on the outside or the inside like in the picture below:

Image

Could this be done?
B
22
S
6
Posts: 244
Reputation: 2,700

Post » Sun Nov 09, 2014 3:57 pm

I would do this by checking coordinates of player, if player.x < box.x or player.y < box.y etc. then do what prevents from going out from box. I'm new in Construct2, so probably there are more better ways to do this.
B
6
S
1
Posts: 57
Reputation: 514


Return to How do I....?

Who is online

Users browsing this forum: Klarner, Yahoo [Bot] and 27 guests