Game Development Community

Is there a save game function or such ?

by Jeff Yaskus · in RTS Starter Kit · 01/19/2010 (12:47 am) · 2 replies

I'm using the TGE 1.5.2 plus RTS kit ... and had a curious thought.

Is there a save game feature or such ? Just curious, as I realized I have yet to see any examples of this with TGE.

How about a PAUSE function ? to pause the game play.


Maybe I could at least keep track of the players progress through my campaign (story line) and return them to the last mission they started -- if nothing else.

#1
01/19/2010 (11:40 am)
You will need to create your own save functionality since you best know your data. While a huge dump of everything would be possible, it would dump a huge amount of information that will probably not be necessary for your game specifics data.
#2
01/19/2010 (2:00 pm)
For pausing gameplay you'll need to write a function that toggles between being paused and unpaused and bind that to a key. To pause the action set $timeScale to 0, to resume set it to 1.