Skip to content

Instantly share code, notes, and snippets.

@Aryoksini
Created April 24, 2019 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aryoksini/440b57547fa3fdcfe08c34a1113b8c51 to your computer and use it in GitHub Desktop.
Save Aryoksini/440b57547fa3fdcfe08c34a1113b8c51 to your computer and use it in GitHub Desktop.
Dive error line 7
public override function onEnter(){
player.animation.play("Dive", null, 0.0, 1.0, false);
player.setVel(player.getVel().addWith(player.getForward().mult(2.5)));
if(fsm.getPreviousState() == "Run"){
player.jump(6.9);
player.playSound("jump1_", 0.5, 3);
}else{
player.playSound("dive", 0.5);
}
#if arm_debug
trace(player.getVel().length *Time.delta * 100.0);
#end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment