View Full Version: about suspend

lassie >>Technical support >>about suspend


<< Prev | Next >>

theauxia- 10-23-2008
about suspend
i think i cant understand what is going on with suspend. in the data.fla i have writen the following TIMe _root.TIMe.pauseGame = function() { return "suspend"; } when i call the pauseGame() from within the game what should it do? it does nothing i think thanks

bigmac- 10-24-2008

Without getting too heavy into scripting discussion, I'll surmise to say this: that pauseGame() method doesn't do anything. It's sending out an ambiguous string to an unspecified recipient, which is akin to saying "hello world" to a little green man who only speaks martian-ese. To effectively create your own TIMe's, you'll basically need to continue calling methods within the existing TIMe API to actually make the game engine do things... however, a custom TIMe gives you the benefit of being able to write additional conditional logic that feeds into the decision-making tree of the game engine.

Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.