Why don't you use a form of a counter, say Level 1 and then add one to the counter/string at each step. Display Level number on the stage in a string. Sorry, I guess this part is obvious.
I assume you need assistance with how to store that user's game into a sort of database for later retrieval. Maybe somebody can point you in the right direction for updating Edge Animate information, Ajax, into a database option. Good luck, will look back to see what would be the best options.
This would be a very helpful answer for me as well. I've been wondering if there's a way to do this sort of tracking after the user returns to the main menu from another separate edge composition, similar to how a hub system works in most adventure games.
work with levels
Care to give insight or are u simply stating the obvious? ;-)
1 person found this helpful
A simple way is to nest each level into a different symbol level1, level2, etc. The main timeline has different labels corresponding to the successive states, say level-1, level-2. The main timeline has its autoplay property set to false. All the levels symbols are instantiated once on stage with a keyframe set for their display property. At level-1 only level1 has its display value set to true ; at level-2 only level2 and so on.
A level symbol has a playBtn symbol instantiated on its begin state and a nextBtn symbol instantiated on its end state (display property again).
In between, there is a simple animation of an object moving along a path (to figure the playing of the level).
The symbol timeline also has its autoplay property set to false. Clicking on its playBtn instance plays the level :
At its end state, clicking on its nextBtn instance moves the playhead of the main timeline (getParentSymbol()) to the next level :
Downloadable example here : https://app.box.com/s/0rd310g6exvw3kcg6623
Thanks for the info.
I'll check it out!