in my game jumperoo, when i land on some platforms the foot kind of goes through the floor, although the character doesnt, yet some platforms the foot goes right on top of the platform which is great, is there something i can do about it?
here check it out
http://scratch.mit.edu/projects/Freestylin_Monkey/165459
Offline
Whats happening, I imagine, is that your downwards movement steps are sometimes so big that your characters foor moves from "not touching the platform" to "partway into the platform" in one step.
You can not directly avoid this without having fixed falling speeds, but you can hide the fact that it happens by checking how "deep" into the platfrom your character has sunk, and if too far, moving them back up. If you do this with a hidden "sensor sprite" you can actually have the sensor sprite move back out of the platform before the character sprite moves to it, so that the character sprite doesn;t appear to jiggle up and down.
I think thats the method I used in my "complex jumping demo" though it has been a while since i looked at the code for that...
Offline