Ifhitspace

From EDukeWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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