[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 » Thu Aug 17, 2017 7:40 am

How can I prevent the object from still moving into the detection region while colliding ?
IMG_20170817_143757.png
sketch map
IMG_20170817_143757.png (29.17 KiB) Viewed 480 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:
IMG_20170817_152839.png
sketch map
IMG_20170817_152839.png (47.33 KiB) Viewed 480 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: 3625
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: [Solved] Prevent Moving While Colliding

Post by Jasoco » Thu Aug 24, 2017 6:15 pm

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: Exabot [Bot] and 5 guests