Attack animation only plays first frame

Yes, but it the “animation has finished” condition is never true, because the animation is not one of ‘attack-1’, ‘attack-2’ or ‘attack-3’ when it finishes.

What if inside the “if one of these conditions is true” he uses “or” for each animation.

“if one of these conditions is true” is an OR statement.

I know that. But I’d try everything I could. :slight_smile:
I can’t see anything wrong, so I will try impossible things.
Maybe there is something wrong in the animation itself.

That’s a possibility which hasn’t been confirmed.

@Shinobi_13, are the attack animation frames more than one frame long?

or the number of animation. It starts on 6. What are the previous?

Try Increasing this value

sorry for not responding, i had an annoying week, and all the attack animations are 6 frames long before returning to idle

so far, these are the basic animations for philip



is there a suggested number i should use?
I’ve done 1,2 and 7 seconds and even changed the frames per second in the preview section

No worries, we all have those kinds of weeks from time to time :slight_smile:

Don’t change that 0.08 to anything higher - it’s the delay (in seconds) between frames. Increasing it will only slow down your animation. Leave it at 13 FPS (or 0.08 second delay).

You’ll need to sift through your code and see where else it sets the animation. Because it has to be resetting it somewhere else.

[edit]
If you like, you could zip up your project and leave it somewhere like dropbox or googledocs. and we can have a look through it. If you’re not comfortable providing a link publicly, send it through in a message.

how would i do that? im not sure how to share a copy of the code and assets

Right click your project file and add it to archive (zip or rar)
Then upload the zip/rar to a file host website and share the link