|
Hey I have been asking alot of questions lately and I have another I am currently working on my third person platformer and I am wanting to make my charachter play an animation of him punching. I have gotten him to play the animation when I hold down my mouse button but I want it to play once instead of looping and I want it to play when I click not when I hold it down. Can anyone point me in the right direction on how to do this. What I have so far is:
So I really need help. I am using java but am open to c sharp if its the only thing that can do it. All help will be apreciated.
(comments are locked)
|
|
Here what I am using in my game: I found it somewhere:
For your request to play something once: pay attention to the line below
I hope this helps and thanks to the original writer of the script NOT me Thanks works great I LOVE JU
Feb 27 '11 at 01:48 AM
Tracey P
(comments are locked)
|

You proberly have to set the animations WarpMode to WarpMode.Once instead of WarpMode.Loop, I believe.