Hi
Ok, so I have a player, with Sprites Unity Complex for the animations (it's connected up with Spine2D/McMenamin controller). I have Direction Int set to "Direction" and when I start the scene up, the correct animator sees the direction and changes it to "3". But... it never changes out of 3 even if I click around in other directions. I don't have any scripts that update Direction, only retrieve it. Here's a gif of the weird behavior/set up:
(Also I managed to check a box somewhere that made everything pixelated? I'm sure I'll find and uncheck it by the time you have a chance to reply.. but just in case, do you know where that mystery checkbox lives?)
Thank you so much :x
- Mo
Comments
Which version of AC are you using? Though your scripts only read the value, as you are also using Spine test AC on its own without anything else - just so that we can isolate this as an AC issue.
The 2D Demo's Resources includes a Sprites Unity Complex variant of the Brain2D player. Try dropping him in and see if that works for you - you'll need to add a Direction parameter / name into the text box, but it all works fine for me. If it works for you as well, the issue will be specific to your character - in which case, let's see some more detail about your character. Where is your Animator component located? Is it just the one?
Have you properly assigned your sprite child? Again, you can refer to the Brain2D prefab on how a sprite should be attached to the root object.
However, my point about the animation clips themselves - if you open up the Animation window and view the animations present in your Animator, you can see if the rotation of the sprite child is being keyed.
The sprite child itself must currently have an Animator, but I shall remove this limitation in the next release: if a sprite child is assigned yet has no Animator, a new field will appear to let you manually assign one.