Bump.Lua issue - player getting stuck when the collision box is above a certain height

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
MistyM
Prole
Posts: 6
Joined: Sun Aug 25, 2019 11:49 am

Bump.Lua issue - player getting stuck when the collision box is above a certain height

Post by MistyM » Fri Jun 26, 2020 2:10 pm

I've used STI and Bump to add my map and collision boxes to my game. Everything is working fine other than when I make a collision box more than a certain height (360px). When it is below this height, it works as it should, when it's above, the player just gets stuck when it collides with the box.
I can't understand why this might be happening!

Any help would be appreciated :)
Thanks,
Megan

User avatar
pgimeno
Party member
Posts: 2179
Joined: Sun Oct 18, 2015 2:58 pm

Re: Bump.Lua issue - player getting stuck when the collision box is above a certain height

Post by pgimeno » Fri Jun 26, 2020 4:17 pm

No idea why it may be happening, but have you tried varying the cell size?

Do you have a simple example that we can use to reproduce the issue and track it down?

MistyM
Prole
Posts: 6
Joined: Sun Aug 25, 2019 11:49 am

Re: Bump.Lua issue - player getting stuck when the collision box is above a certain height

Post by MistyM » Sat Jun 27, 2020 1:36 pm

pgimeno wrote:
Fri Jun 26, 2020 4:17 pm
No idea why it may be happening, but have you tried varying the cell size?

Do you have a simple example that we can use to reproduce the issue and track it down?
Hi pgimeno,
I've actually managed to figure it out. I made sure the collision box height was a multiple of 16 (my tile height/width) and it works fine now. bit of a pain for manually putting in hit boxes but at least it works!

MistyM
Prole
Posts: 6
Joined: Sun Aug 25, 2019 11:49 am

Re: Bump.Lua issue - player getting stuck when the collision box is above a certain height

Post by MistyM » Sat Jun 27, 2020 4:25 pm

Ah, I was wrong. The issue wasn't fixed.
This is the game when the ladder hitbox is 32x192px (working perfectly fine):
ezgif.com-video-to-gif.gif
ezgif.com-video-to-gif.gif (4.3 MiB) Viewed 85 times
and this is the game when the ladder hitbox is 32x400px. The player gets stuck and cannot move in any direction.
ezgif.com-video-to-gif (1).gif
ezgif.com-video-to-gif (1).gif (1.41 MiB) Viewed 85 times
It seems to start happening when the hitbox height is above 360px.

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests