- Home /
Question by
BigDakaFa7 · Aug 05, 2014 at 12:04 AM ·
c#animation
How to keep an animation attached to gameobject
I am currently using 2d toolkit and C# and i am trying to play an animation that loops at the end and keep it attached to my gameobject. The game object flies around and i need the animation to stay in front and never fray away. What can i use to keep an animation looping while i keep a key pressed down and my gameobject constantly moving while the animation stays playing? I am at a loss on what to do here and i have a deadline coming up thanks in advanced.
Comment
It is for the player. Its a laser beam animation that i want to stay straight in front on the player regardless where the player moves. I have no idea how to do that and any links on how to do it are awesome or code snippets. Thanks