OK
First, the timer.
Start out by creating an actor ("timer"), make a text number on it ("300")
Then, Make an event "Create actor" --> "script editor" use this code:
- Code: Select all
textNumber=300;
Next, make the event "Create actor" --> "Create timer" -->"Time", 1000 (ms), and repeats forever
Then, make the event "Timer" --> "Time" --> "Script editor"
Then, use this code:
- Code: Select all
textNumber-=1;
Now, create an event "draw actor" --> "conditional action" --> "If [
textNumber] [is less or equal to] [
0]
From there, you can add your own actions.
OK, now on to restarting your game
On key down event, choose the key you want to have restart your game &, in script editor, use LoadGame followed by ("
yourgame.exe"). It should look something like this:
- Code: Select all
LoadGame("yourgame.exe")
**Note: replace yourgame with the file name of your game
If you need a demo of this, drop me a line!!
HTHs