playMaker

Author Topic: Adding animation to sprite messes with move toward action  (Read 812 times)

uilk

  • Playmaker Newbie
  • *
  • Posts: 16
Adding animation to sprite messes with move toward action
« on: January 27, 2020, 01:31:21 AM »
I have an FSM set up that moves a character sprite onto a player selected position using the move toward action. It was working fine until I added an animation to a flying character that makes them bob up and down along the y axis. When the animation is applied the character teleports to the position instead of moving to it at a defined speed. What's going on here? The action still works fine for characters that do not have animations attached to them.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Adding animation to sprite messes with move toward action
« Reply #1 on: January 27, 2020, 02:30:12 AM »
Hi,

try to create a hierarch structure so that the move towards follows the parent and then have your sprite being animated as a child of that.

else, can you explain further or show your setup and animation and what's going on so that we can further help you.

Bye,

 Jean