Ifhitspace: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
       fall
       fall
     }
     }
  enda
enda
</pre>
</pre>



Revision as of 22:51, 6 January 2009

ifhitspace {...}

Checks to see if the player has pressed the open button (space by default).

Example:

// This will cause a sprite to fall when "open" button is pressed.

actor FALLING_APPLE
  ifhitspace
    {
      fall
    }
enda