![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | ExpNeeded |
I got this code from a platformer tutorial by heartbeast and i encounter this issue
i tried to fix it but it failed
what should i do
here is the script
func climb_state(input):
if not is_on_ladder(): state = MOVE
if input.lenght() != 0:
animatedSprite.animation = “RunAnim”
else:
animatedSprite.animation = “IdleAnim”
velocity = input * 50
velocity = move_and_slide(velocity, Vector2.UP)