I have a sprite sheet of a man running, and I have made the physics body a polygon shape. However, now it will not bounce, move or roll or anything, although it is still affected by gravity. Any solutions to this? The code is:
I made an entire game by creating my own custom shapes and after I discovered Physics Editor I was kicking myself. It literally takes seconds to define a shape. It is the one tool I would choose over any other for physics based games. You can also try it for free. I didn’t use it at first because I was new and didn’t understand it but there is a sample for Corona now: http://www.physicseditor.de/2012/01/22/example-with-coronasdk-using-physicseditor-texturepacker/
Hope this helps.
EDIT: I just looked at the documentation for complex bodies and it shows it being created counter clockwise. I remember this causing grief for me before. All my items were definitely created clockwise and they work. It’s been a while but I remember following the samples on that page and it not working properly. [import]uid: 31262 topic_id: 24254 reply_id: 98257[/import]
thanks, ive downloaded it and looks great, although im not sure how I would apply it to a sprite as the outline changes. Ive checked my coordinates and they are definitely in clockwise order.Any other suggestions? [import]uid: 116264 topic_id: 24254 reply_id: 98266[/import]
yeah, the shape is a sort of L. Ive changed the order of the coordinates and now corona crashes when I run it? [import]uid: 116264 topic_id: 24254 reply_id: 98282[/import]
I don’t think you can make an L shape. I think you will have to use 2 shapes together to make it. [import]uid: 31262 topic_id: 24254 reply_id: 98283[/import]
Again, I don’t have any experience with physics on sprites so not sure if this is accomplishing what you need. [import]uid: 31262 topic_id: 24254 reply_id: 98287[/import]