Hi,
Is there a way to make a transition infinite? meaning making it start over from the top once it has finished?
Hi,
Is there a way to make a transition infinite? meaning making it start over from the top once it has finished?
Sure, add an event listener to enterFrame and monitor the object’s y coordinate. Once it reaches passed the bottom of the screen move the object back to the top and start over.
yeah sure but I wanted to find out if there’s another way to do it, since this way is causing a bit of problems (I’m creating a rotation transition on physics objects so you see why this could be problematic)
Try to provide more information in your original post next time to help us help you. Can you please clarify what you are trying to do exactly?
I have physics objects that are added to the game constantly -
I want these objects to rotate all the time-
I tried doing what you suggested and added a runtime listener to detect when the rotation has completed (they start at rotation=0, and the transition causes them to rotate to 360).
When it detects it, the listener causes the transition to perform again.
The problem is that since they are affected by physics, and therefore hit each other - their rotation changes after impact and that makes the transition stop…
Sure, add an event listener to enterFrame and monitor the object’s y coordinate. Once it reaches passed the bottom of the screen move the object back to the top and start over.
yeah sure but I wanted to find out if there’s another way to do it, since this way is causing a bit of problems (I’m creating a rotation transition on physics objects so you see why this could be problematic)
Try to provide more information in your original post next time to help us help you. Can you please clarify what you are trying to do exactly?
I have physics objects that are added to the game constantly -
I want these objects to rotate all the time-
I tried doing what you suggested and added a runtime listener to detect when the rotation has completed (they start at rotation=0, and the transition causes them to rotate to 360).
When it detects it, the listener causes the transition to perform again.
The problem is that since they are affected by physics, and therefore hit each other - their rotation changes after impact and that makes the transition stop…