Jump to content

Recommended Posts

I'm trying to change the animation played when the character using yellowstaff to creatlight.

I know that it is controled by the state "castspell" in Sgwilson.lua. And     

inst.AnimState:PlayAnimation("staff_pre")
inst.AnimState:PushAnimation("staff", false)

is  the key code.

I want the character play the animation I creating in spriter,but I don't know how to add it.

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
×
  • Create New...