Please help. I need to know how to at the end of the game, restart. Thanks
[import]uid: 39533 topic_id: 8166 reply_id: 308166[/import]
That is a really open-ended question and thus basically impossible to answer. For example, what constitutes the end of your game? Is it when the player’s avatar reaches a goal location? Is it when the player scores enough points? Is it when the time runs out?
Making some broad assumptions though, you could have an object that checks for collisions, and then when collided with calls the restart function. As a start, look at these two examples I put in Code Exchange; you could mash them up so that the menu functions are called when overlap is detected.
http://developer.anscamobile.com/code/flashs-hittestobject-emulated-using-contentbounds
http://developer.anscamobile.com/code/object-oriented-sample-game-framework [import]uid: 12108 topic_id: 8166 reply_id: 30174[/import]