Ifhitspace: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
'''ifhitspace''' { do something } else { do something else } | |||
Checks to see if the player has pressed the open button (space by default). | 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 | |||
[[Category:Duke3D 1.3/1.5 commands]] | [[Category:Duke3D 1.3/1.5 commands]] | ||
[[Category:Player manipulation]] | |||
[[Category:If conditions]] | [[Category:If conditions]] |
Latest revision as of 11: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