Animations still not playing despite correct setup and code

Hi everyone,

First of all, thank you again for the great help last time!

I’m running into an issue with my character animations again and would really appreciate it if someone could help me figure out the cause.

  • The Setup: I have an Anim Graph with an Idle and a Walk state. The transitions are set up with a speed parameter, and my movement script successfully updates speed using animComp.setFloat('speed', ...) (verified in the console).

  • The Problem: The entity and render component are on the exact same entity, the animation asset previews and works fine, but when running the game and moving, the animation still doesn’t trigger or play at all.

If anyone has an idea of what might be causing this or what I could check next, I would greatly appreciate it!

Thanks in advance!

Hi @yinon.harif!

Please don’t forget to share a link to your project, code snippet, or screenshots when asking a question. Without it, it’s nearly impossible for others to figure out what’s going wrong.

That said, I took a look at the project you shared in your other post. It turns out that your ‘atak’ and ‘shoot pistol’ states are constantly overriding your other states. This happens because their conditions are currently only based on distance. Since those conditions are always met, those two states keep hijacking the state graph.

To fix this, you’ll probably need to add extra conditions (like checking the current state or combining checks), so they are only triggered when appropriate.

1 Like

thenks

Could you please let us know if this actually solved your problem? A bit more feedback helps to keep the topic informative and it makes it possible to close the topic properly.

yes it help

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.