animatedtile event
So i am trying to make a farm game. So i far i have laid down the tiles so create soil, and on top of the soil im trying to grow crops.
For these crops i have created an animatedtile, which grows quite nicely. However, now i wish to add an animation event to this animatedtile. My wish is that, once the last frame of the crops have has been reached, the animation starts over and money is gained.
However, i can't seem to add an animation event to this animatedtile. So far i have tried adding the animation manually instead of using the standard piece of code: tileAnimationData.animatedSprites = m_AnimatedSprites;
However, i can't add the animation manually to the animatedtile. Although i can add the animationclip i can not add an animator or animation component necessary to play the clip.
I hope someone can help me with this.
Your answer
Follow this Question
Related Questions
Add Event in animation from another Gameobject 5 Answers
How to add Animation Events in the Timeline editor? 5 Answers
Prevent Animation From Playing Until Button is Pressed. 4 Answers
How to play attack animation multiple times with mechanim 0 Answers
Animation Event not working with animation speed multiplier enabled? 0 Answers