Last active
January 23, 2016 23:01
-
-
Save Razzlegames/a20e10466b9836b23346 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const STATIC = 0 | |
const SPINNING = 1 | |
var spin_state = STATIC | |
#***************************************************************** | |
func _process(delta): | |
if(spin_state == SPINNING): | |
for i in range(5): | |
doStuff() | |
spin_state = STATIC | |
#***************************************************************** | |
func _input(event): | |
if(event.is_action_pressed("jump") && | |
!event.is_echo() && event.is_action("jump")): | |
handleJumpAction() | |
spin_state = SPINNING |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment