Ifhitspace: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
One (talk | contribs)
No edit summary
One (talk | contribs)
No edit summary
 
Line 6: Line 6:
   
   
  actor FALLING_APPLE
  actor FALLING_APPLE
   ifhitspace
   '''ifhitspace'''
     {
     {
       fall
       fall

Latest revision as of 12:47, 4 May 2009

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