Hay, I have a problem with SM2 and scripting animation.
On scene I have one object (ship) and he can move left, right, up, down… also on scene is sprite pilotPrefab (created in SM2, with 4 animations: for movement to left, right, up, down) and now the problem :?
I don’t know how to call animation of pilotPrefab for left when I press left button to move ship. :?
Thanks for the replay, but I don’t really understand I tried what you wrote, but only I got was error :?
Here is the image of my sprite pilotPrefab on stage
can you plz write me a sample code what I need to put in code of my shipPrefab to call animation of pilotPrefab when “Left” key is pressed (move ship to the left). Thank you very much!