-
-
Save Aryoksini/440b57547fa3fdcfe08c34a1113b8c51 to your computer and use it in GitHub Desktop.
Dive error line 7
This file contains 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
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