Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ZBexperiments

Pages: [1]
1
Support / Re: Help with Returning to a Sprite after Animation Ends
« on: September 27, 2013, 11:28:30 pm »
Thanks for the help.

I think I have that part figured out now.

But when I test my game, the animation doesnt play.
I get an error saying "Object reference not set to an instance of an object".
Its something wrong with this line of code, but its exactly how the docs show how to do it.

anim.Play("BowAnim");

I have no idea why it isnt playing the animation.

2
Support / Help with Returning to a Sprite after Animation Ends
« on: September 27, 2013, 09:15:01 pm »
Hello,

I really don't understand how to do something after an animation ends.
I want to set the sprite to the same one I had before I trigger the animation.
So there would be a sprite, then I would trigger an animation, and then it would go back to the sprite.

The reference documents aren't making sense to me regarding the animation scripting.
I know I have to use AnimationCompleted, but I dont know how to set it up the correct way.

Thanks

Pages: [1]