I’m making a platformer game using physics.
I need to detect a certain type of collision when the character touches a side or another of a specific static body.
For example, the top of a block would be “ground”, the sides would be “walls” and the bottom would be “ceiling” or similar.
Any idea guys? Thanks in advance! [import]uid: 105206 topic_id: 24437 reply_id: 324437[/import]
You could make a complex body:
http://developer.anscamobile.com/content/game-edition-physics-bodies#physics.addBody
then check the event.selfElement upon collision. [import]uid: 21331 topic_id: 24437 reply_id: 98876[/import]