I am currently creating an mario-style game too and Im at the point that my character can walk and jump on a straight line so the next thing I have to do is also the collision detection. I once made a mario-style flash game though.
Im interested in the answer of this problem but what I would do is if the player is moving left and up, and its upper-left corner hits another object. I would check if I bounced into the object to the left, or that i am more to the right. Another way of saying: The points where 2 (1 standing still and 1 is moving left and up) squares collide is an rectangle. If the rectangle is width>height then It bounced onto the bottom. If the rengtangle is height>width it bounced on the left. I think that should suffice :-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
