On Windows, after pressing the Start button, the space key restarts the game.
This is the solution:
Function ButtonProc(ctrlName) : ButtonControl
String ctrlName
Button$ctrlName, disable=2// so that the space key doesn't restart the game
startgame()EndFunction endgame()ctrlNamedBackground task1,proc=RunningGame,stop
ctrlNamedBackground task2,proc=playbg,stop
wave bg0
Playsound/A=2 bg0
Button button0, disable=0// allow restarting the gameEnd
That is awesome!
Please, can we also have Space Invaders?
August 26, 2021 at 07:23 am - Permalink
In reply to That is awesome! Please,… by ChrLie
The answer is undoubtedly yes, but I have to learn how to play Space Invaders first:)
August 26, 2021 at 05:07 pm - Permalink
On Windows, after pressing the Start button, the space key restarts the game.
This is the solution:
A very well done game!
August 27, 2021 at 11:38 am - Permalink