Why does this happen when I change the size?

Get help using Construct 2

Post » Fri Oct 06, 2017 9:56 pm

I have enemies in game.
Variable: WalkDr = left, it goes left
WalkDr = right, it goes right

Collision against object (reverse direction)
-if walkdr = left, set walkdr to right
-else = set walkdr to left

It works just perfectly. But when I change the size of the enemy, he goes right through the object and the command doesn't work properly.
Why does this happen when I change the size of the enemy?

https://www.scirra.com/tutorials/253/ho ... ame/page-7
This is exactly what I am doing.
B
12
S
3
Posts: 89
Reputation: 1,566

Post » Sat Oct 07, 2017 2:35 am

Construct 2 detects collisions using collision polygons.
Check collision polygon of your Enemy sprite (on all frames) and of that object that should stop it.

If this doesn't help, please share your capx file.
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
129
Posts: 1,799
Reputation: 68,923


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 62 guests