[Solved] Prevent Moving While Colliding

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
ceana
Prole
Posts: 9
Joined: Fri Aug 11, 2017 5:08 pm
Location: A place where English is taught

[Solved] Prevent Moving While Colliding

Post 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 2085 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 2085 times
Now I am thinking about the solution, and I also need your help thanks :)

add: not tiled
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: [Solved] Prevent Moving While Colliding

Post 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.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 51 guests