Jump to content

Recommended Posts

Hello there. I have tried to make a projectile that spins in air before hitting target. As you can expect I failed once more. I used boomerang prefab to figure it out but following code line doesn't work: inst.AnimState:PlayAnimation("spin_loop", true). I have tried everything according to my knowledge. Thanks for help in advance.

Link to comment
Share on other sites

12 hours ago, Yakuzashi said:

Hello there. I have tried to make a projectile that spins in air before hitting target. As you can expect I failed once more. I used boomerang prefab to figure it out but following code line doesn't work: inst.AnimState:PlayAnimation("spin_loop", true). I have tried everything according to my knowledge. Thanks for help in advance.

Using the PlayAnimation "spin_loop" will not work on just any item. What this does is calls a specific animation that is setup with the boomerang, if you don't have this animation in your Spriter file it can't be called. I would suggest looking into Krane for Don't Starve Together and to use it to get a Spriter file for the Boomerang to get an idea how to accomplish this.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...