Reputation: 136
In my game i used more than 1000 physics object.it will be run in iPhone and ipad.but Andorid extremely slow.please help me i searched solution in net but cant.In Runtime i am creating more than 800 physics object.i am creating lava flow so using runtime listener to create multiple object thats look like lava flow.
Upvotes: 0
Views: 153
Reputation: 3982
You can try to preload all images you'll use. And when you need to delete them, just remove them from pysics with
physics.removeBody( target )
and set their alpha value to 0. So when you need them again, you can readd them to physics and set alpha to 1 again.
I think it will help your load problem, you mentioned in your comment.
Upvotes: 1
Reputation: 12424
Why are you creating so many objects? What type of device are you testing this on? I don't think corona will handle that on device.
Upvotes: 0