fix shadow variable

This commit is contained in:
Mylloon 2023-02-25 17:32:20 +01:00
parent 21f7746f8a
commit a486a2ed83
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -29,13 +29,13 @@ func _process(delta):
var current_anim_idx = animations.find(me.animation)
if current_anim_idx >= animations.size() - 1:
# Last animation reached
check_next_animframe(me, max_frame, animations[0])
check_next_animframe(max_frame, animations[0])
else:
check_next_animframe(me, max_frame, animations[current_anim_idx + 1])
check_next_animframe(max_frame, animations[current_anim_idx + 1])
# Jump to next animation at the end of the current one
func check_next_animframe(me, max_frame, next_animation):
func check_next_animframe(max_frame, next_animation):
if me.frame == 0 and next:
me.play(next_animation)
next = false