Page 1 of 1

[Solved] Prevent Moving While Colliding

Posted: Thu Aug 17, 2017 7:40 am
by ceana
How can I prevent the object from still moving into the detection region while colliding ?
sketch map
sketch map
IMG_20170817_143757.png (29.17 KiB) Viewed 2092 times
I tried to set its speed to zero when collision occurred, but it still moved by rocking the virtual joystick.

I also want this result:
sketch map
sketch map
IMG_20170817_152839.png (47.33 KiB) Viewed 2092 times
Now I am thinking about the solution, and I also need your help thanks :)

add: not tiled

Re: [Solved] Prevent Moving While Colliding

Posted: Thu Aug 24, 2017 6:15 pm
by Jasoco
Depends on your method of collision detection and resolution. We can't do anything without knowing how you coded it. There are numerous ways of doing collision.