Skip to content

Instantly share code, notes, and snippets.

@Razzlegames
Last active January 23, 2016 23:01
Show Gist options
  • Save Razzlegames/a20e10466b9836b23346 to your computer and use it in GitHub Desktop.
Save Razzlegames/a20e10466b9836b23346 to your computer and use it in GitHub Desktop.
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