Hi!
I’m new to Corona and Lua, but I am definitely loving it so far.
The biggest hurdle for me seems to be handling different screens. Specifically, how to properly clean everything when switching. I’ve figured out timers and objects in general, but what do i do when it comes to transitions?
My game creates a bunch of objects and animates them on the x-axis using a transition. On the completion it calls a RemoveMe-function, to remove itself. Whenever I change screen, I get runtime errors because the objects have already been removed by changing screen. So the pest solution would be to cancel ALL transitions before removing the objects.
So, in short: is there a quick way to cancel all transitions in the current group? Otherwise, how would I go on about coding a simple “cancellAllTransitions”-function for doing this myself – maybe storing transitions in an array and using a for loop to remove them all?
I am using the director class, but I though this question was more general and posted it here.
Thanks,
Mark [import]uid: 13935 topic_id: 5288 reply_id: 305288[/import]