Hello,
i have a question, i cant find answer to it on forums so i’ll just ask)
What preferable to use if i have many objects on screen, what will help pefromance? Transition.to functions or enterFrame function for object movements?
thanks in advance [import]uid: 16142 topic_id: 18611 reply_id: 318611[/import]
There was a Blog post on this I believe.
The difference is the animation is time based or frame based. If processing code takes longer than expected, the overall frame rate will degrade. I’t not recommended to take a frames based approach if you have lots of objects and don’t need absolute precision in movement of your objects.
-David
[import]uid: 96411 topic_id: 18611 reply_id: 71470[/import]
What david97 said is true The only thing I dont like about Transition.to is there is no API to do a pause on transition and depending on your game this can be a problem. But there are sample codes in code exchange to help you accomplish a transition pause
Best of Luck,
Chris L. [import]uid: 30314 topic_id: 18611 reply_id: 71475[/import]
great, so i tried to use http://developer.anscamobile.com/code/pausable-transitions-very-simple-method
this method to pause my transitions, but problem is:
i need to iterate through table to pause them and it works okay, but when i try to resume its giving me an error for #object.startTime
is there any workaround to it? [import]uid: 16142 topic_id: 18611 reply_id: 71478[/import]
I haven’t used the code from your link, although Satheesh is very clever so I’m sure it is good - but it might be worth checking out this slightly older pause/resume from Karnak Games; http://karnakgames.com/wp/2011/03/transition-manager-for-corona-sdk-pause-resume-and-manage-all-transitions-in-a-scene/
Just to see if it will allow you to do what you want without errors.
Peach
[import]uid: 52491 topic_id: 18611 reply_id: 71511[/import]
Thanks Peach for this, its exactly what i needed and i dont need to iterate through table anymore) coooool [import]uid: 16142 topic_id: 18611 reply_id: 71576[/import]
satheesh, please respond to skype request sometime)) [import]uid: 16142 topic_id: 18611 reply_id: 71593[/import]
No worries Satheesh, I’m glad you saw it
I enjoy reading your posts - it’s always great to see members of the community working to help others and I notice you put a lot of effort into that.
Peach
[import]uid: 52491 topic_id: 18611 reply_id: 71768[/import]