Endless Animation [Idea]

FranAlt

  • Posts: 169
Hey everyone, just one silly question.

Which animation should I call in my actor's behavior? I have Left-1, Left-2, Right-1, Right-2. I added text attributes to the list "Left,1,2" and "Right,1,2" in the Endless animation behavior. Now on my other behavior, to switch to the right or left animation what should I put? Left-1? Or write "Left,1,2"? I tried those and could get it to work...
Swipe - FREE          Cloud Run - FREE              
                                  
         iOS                                Android
    Android

captaincomic

  • *
  • Posts: 6108
Left-1 should work. What's happening or not happening when you switch to Left-1?

FranAlt

  • Posts: 169
It will just play Left-1 and won't switch to any other animation after that.
Swipe - FREE          Cloud Run - FREE              
                                  
         iOS                                Android
    Android

captaincomic

  • *
  • Posts: 6108
Are you maybe switching the animation continuously in every frame, in the behavior shown in the second screenshot?

Like for example:
<always>
  <if <<Left Key> is down>>
    <switch animation to <Left> for self>

For this case the behavior has a custom block that only switches animation if the prefix of the current animation is not the same.