ID:266742
 
I would like to know how to do animations in a game. For instance, how would i show a character zapping a wand, and then have a red beam com out of the wand until it hits something. Is there a way to do this?
the missile() proc will do the shooting of the 'Zap' ray, look it up in da reference
(I am in a helping mood tonight)
The flick() proc will play an animation once from the beginning to end.
In response to FireEmblem
Make the animation of the guy moving the wand and right click and hit edit_state,, then type in wand and then ok, and add this code

mob/verb/Fire_Red_Beamie_thingie()
usr.icon_state = "wand"
sleep(20)
missle(obj/redbeam,usr,loc)
usr.icon_state = ""
view(10) <<"[usr] castes a red beamie thing!"

obj/redbeam
Enter()
//damage code here