Controling Game

Hi,


I've included a TicTacToe game in my unit. I've selected the option to Auto Start it when the page shows and all is well. I want to add a button that learners can use to restart the game and play it again but can't seem to find the appropriate action(s). There doesn't seem to be an action to reset the game or the page and start over.


What actions should I associate with a button learners use to restart the game?


Thanks


J-M

Discussion (3)

Easiest solution to resetting a page in Lectora: add a blank hidden page somewhere at the end of your title, then create a Reset button with Go To action leading to that hidden page. On the hidden page, add On Page Show --> Go Back action. This way, learners will navigate away from the Tic Tac Toe page and will be sent back immediately. When the page loads, the game will be reset.

Alternatively, you can use JavaScript to delete and re-insert the Flash element into the page, thereby resetting it.

Hi,


I guess what you're saying is that there's no easy way to reset the game itself, that I have to refresh the page instead. Moving back and forth between pages will work but creates a jumping effect that bothers some people. Would be better if game templates automatically included a reset button for the game without having to reset the page.


J-M

Discussions have been disabled for this post