Pause: Zum weiterspielen Leertaste drücken
Verfasst: 27.04.2005, 01:47
Wer kennt nicht diesen Dialog aus dem Titel?
Frage: Wie kann ich AGS dazu überreden?
Frage: Wie kann ich AGS dazu überreden?
Adventure-Treff.de Forum
https://adventure-treff.de./phpbb/
Code: Alles auswählen
function on_key_press (int keycode){
// called when a key is pressed. keycode holds the key's ASCII code
if (keycode == 32)
{
// SPACEBAR
if (IsGamePaused () == 0)
{
GUIOn (PAUSED);
DisableInterface ();
}
else
{
GUIOff (PAUSED);
EnableInterface ();
}
}
...