Ifhitspace

From EDukeWiki
Revision as of 12:47, 4 May 2009 by One (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ifhitspace { do something } else { do something else }

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

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

actor FALLING_APPLE
  ifhitspace
    {
      fall
    }
enda