2D relative animation

Updated on May 6, 2019 in [A] Animation
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
1 on May 4, 2019

i want my gameobject to start a simple animation from HIS position to a specific position, can i achieve this without writing code?

the animation takes the object from his position and drops him in the middle of the screen.

  • Liked by
Reply
0 on May 6, 2019

No. Not if the start and end position can be moved from each other. If the points are fixed, and this is the only time you’ll use that animation, then yea, you could hardwire him to follow that specific path.

-or-

You can physically move him without code if your animation has root motion, but you can’t make him stop at a specific point without code.

You need the code to tell him when he has reached the spot, and then tell the animation to stop.

  • Liked by
Reply
Cancel