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
Bump.Lua issue - player getting stuck when the collision box is above a certain height
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Bump.Lua issue - player getting stuck when the collision box is above a certain height
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?
Do you have a simple example that we can use to reproduce the issue and track it down?
Re: Bump.Lua issue - player getting stuck when the collision box is above a certain height
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!
Re: Bump.Lua issue - player getting stuck when the collision box is above a certain height
Ah, I was wrong. The issue wasn't fixed.
This is the game when the ladder hitbox is 32x192px (working perfectly fine): and this is the game when the ladder hitbox is 32x400px. The player gets stuck and cannot move in any direction. It seems to start happening when the hitbox height is above 360px.
This is the game when the ladder hitbox is 32x192px (working perfectly fine): and this is the game when the ladder hitbox is 32x400px. The player gets stuck and cannot move in any direction. It seems to start happening when the hitbox height is above 360px.
Who is online
Users browsing this forum: Semrush [Bot] and 10 guests