#Godot 4.2 Broke Animations

20 messages · Page 1 of 1 (latest)

vernal musk
#

Since updating my steam Godot version to 4.2 the animations in my 2D platformer game don't seem to work and I dont't know why. I have used print to look around and all of the values/variables in if statements that change my animations still seem to function properly. It is just the animations themselves which sometimes play or don't when they should/shouldn't. For example when landing on the ground but not inputting any horizontal movement It plays the run animation and when landing on a wall even though the variable is_wallsliding is true. The wallslide animations doesnt play. The animations all look right in the animationplayer.

ornate oyster
#

Don't compare a float for strict equality with ==. Use is_equal_approx instead.

#

Also, have you checked if when is_wallsliding is true, is_on_floor isn't also true. That's the only reason I can think of why that branch would not be hit.

vernal musk
#

I was using is equal approx then changed cus thought might be the problem

#

I will change back

#

Is wallsliding is true but doesn’t play the animation.

#

I haven’t changed anything else since before it broke

#

So I think it might be a setting that changed with the animation player itself.

vernal musk
#

I just realized the animations for a different object in my game are also broken

#

so i am pretty sure that its an issue with animationPlayer

#

example of issue

#

i think part of the issue is something to do with autoplay, but also I have several 1 frame animations in my animationplayer

#

what do I do instead of 1 frame animations?

#

@ornate oyster sorry for bothering you, I just saw that you were online

#

i managed to fix some stuff but for some reason when I land on the ground right after moving horizontally but then stop moving the game tries to play the idle animation but instead is playing the run animation

#

I tried changing the play ("idle") to play ("RESET")

#

this fixes the issue with the running but I want the idle animation not the reset

#

when changing reset back to idle it doesnt work

#

i legit just named idle to RESET and it works