Game Development Community

Strange behavior of Effects

by Ahmed Murad Akhter · in iTorque 2D · 10/21/2009 (5:30 am) · 1 replies

I've created an effect which is mounted on projectiles shot by my main character. When playing the game on a Mac or PC everything works fine and effects are produced for each projectile. However, on the iPhone or in the Simulator only the first few projectiles have effects mounted on them and others don't.

I thought this had something to do with low memory on the device and instead of creating a new effect for each projectile I have created a single object and just set its visible flag on and off. However, that didn't solve the issue. Moreover, the problem persists on the simulator as well which shouldn't be running low on memory.

I've read a previous thread in which the problem seemed to be with the world limits and have increased the world limit as well. That hasn't solved the problem either.

Any help in this regard would be highly appreciated.

#1
10/21/2009 (12:59 pm)
As you correctly stated this issue has been seen before. Most commonly it is due to the emitter being deemed to be not visible and hence switched off.

Have you tried the hack I suggested here to just confirm the issue is the same one?

www.garagegames.com/community/forums/viewthread/99735