Hello All,
So, I’ve been attempting to create a platformer-based game and have got stuck at the sprite animation stage.
So I have a spritesheet with various actions/states modelled (running, walking, jumping, idle etc.) but I’m having trouble working out how best to model the related physics body to it.
Since all my sprites have various shapes and sizes, I wanted to setup a basic outline applicable to all (using 3 circles of varying sizes for the main sprite shape) and also providing 4 additional sensors (left/right hand, left/right foot for collision checks).
I first tried using PhysicsEditor, and the export I get doesn’t include any shape information, since the fixtures are all circles.
From what I can work out, Corona doesn’t support the setting of an Anchor Point (instead it defaults to the x,y center of the display group the body is applied to). This means that all 7 of my fixtures are centered when it comes to running the game.
How have other people handled this, beyond creating the craziest known physics polygon shape to encompass the union of all sprite poses? Is it possible somehow to associate these circular fixtures and create an overall body from it? [import]uid: 122384 topic_id: 25876 reply_id: 325876[/import]
