hello, I’m making a platformer game and the player has multiple animations, idle, run, jump, fall, ladder climb, and attack-1, attack-2, and attack-3. And for some reason, all other animations work except the attack ones, they all only play a small split second part of the first frame, I’ve spent a couple of hours looking on this website trying to find a solution and everything I see doesn’t work,
What happens after split second the attack animations are shown? Does another animation start? Are there any other actions that change the animation of Philip that aren’t in the screen shot? Because I can’t straight off see what could be causing it from what you’ve given.
Also, shouldn’t the maximum speed of Philip be set to 0 when the x key is pressed?
Have you preset a value for the inicial Attack of Phillip? Because your first line is a condition, not an action. And your second line should be a subevent.
People have this problem a lot here. The answer is almost always that they are setting the animation every frame and missing a “Trigger Once”.
I’m not sure that’s your issue based on the snippet, but think about whether it’s possible.
Also made add a “Play Animation” on the sprite perhaps?
after the split-second frame, it just goes back to idle, and the reason his speed is set to 0 is because I don’t want him to move while he is swinging his weapon
And this still doesn’t work? It still has the split second animation before changing? Because if you’re still getting the issue, then you must be resetting the object variable Attack somewhere else.
The differences in variable colours is because you’ve chosen dark theme, while WishForge games used Nord theme.
I think it’s because of the bug - the split second that the attack animation is shown before reverting to a non-attack animation. If OP sets speed to 0, then it never gets set back to 500, because the condition of the attack animation having finished is never met. And then Philip cannot move because speed is always 0.