I could really use some help with this collision problem...
firemaplegames
Member Posts: 3,211
I could use some help with this one.
http://gamesalad.com/game/play/40288
Use the LEFT/RIGHT arrows to move the blue box.
The blue box SHOULD move smoothly over the blocks. It works mostly, however, it SOMETIMES gets stuck on an edge.
The blocks are all at the same exact Y.
This is driving me crazy. I've tried everything I can think of. I could use a new set of eyes if you have the time to take a look at it.
This is the last remaining bug for my platformer tutorials, I have everything else locked down.
Thanks!!
Joe
http://gamesalad.com/game/play/40288
Use the LEFT/RIGHT arrows to move the blue box.
The blue box SHOULD move smoothly over the blocks. It works mostly, however, it SOMETIMES gets stuck on an edge.
The blocks are all at the same exact Y.
This is driving me crazy. I've tried everything I can think of. I could use a new set of eyes if you have the time to take a look at it.
This is the last remaining bug for my platformer tutorials, I have everything else locked down.
Thanks!!
Joe
Comments
I'm so excited that you're done with the first set of tutorials!
it will just stick on one of the tiles.
Have each block display it's Y coordinate, every white/grey box, and the blue box, see what (if anything) changes when it get's stuck
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
Do you need it to move across those items? or could you not just use a single invisible actor rectangle it could push against?
Also if you change the player collision shape to a circle it works with a slight overlap
also interesting - if you take your gravity attribute out and add scene gravity it behaves properly.
well, it still happens whether I apply gravity just to the actor or use Scene Gravity.
And I can't use circle collision because I need the player to be able to stand on the edge of platforms.
thanks for the suggestions, though! I'll keep trying...
http://gamesalad.com/game/play/40351
Thanks for doing this, Joe, and thanks to all that are helping!
Can't *wait* to make a cool platform game!
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
"assuming they have no movement also going on."
I meant:
"assuming they have no rotational movement also going on (to throw the Y value off from being non-fractional)."
---
Movement in the X direction by the platforms themselves (for horizontal platforms) should be okay but movement in the Y may require the platforms themselves to constrain their Y position value (using ceil() ) to force non-fractional Y movement values (but I would have to test to see if it causes any shaking but I don't think it would).