STI+Bump = collision issues

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
Thorkal
Prole
Posts: 11
Joined: Tue Aug 06, 2019 4:42 pm

STI+Bump = collision issues

Post by Thorkal »

Hi everyone,

I use tiled maps with the sti+bump combo. The collisions seem to be well handled for characters+environment tiles, but when I try to handle character+character collisions, the collision seem to happen when they not actually touching. I don't see where the issue come from. I tried to simply return "slide" in the function handling collision (MoveCharacters:unidirectional_Col in ecs/systems/moveCharacters.lua), and they collided well (there wasn't space between my player et the enemies when they collided).

Also, I try to use ECS for my project, so if you see architecture mistakes, let me know.

Thank you
Attachments
test.love
(2.14 MiB) Downloaded 194 times
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 32 guests