Ifhitspace

From EDukeWiki
Revision as of 22:49, 6 January 2009 by 66.97.115.134 (talk)
Jump to navigation Jump to search

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