animation?

That tutorial only really shows you how to make animations and put em in.
Basically, if you want it event based just have the animation always hidden and on the event just un-hide it. Thats what I have for my killpop.
 
cyclonite said:
That tutorial only really shows you how to make animations and put em in.
Basically, if you want it event based just have the animation always hidden and on the event just un-hide it. Thats what I have for my killpop.


Does it lag (fps, etc) when it pops in on that event?
 
Here are some exerts from my KillPop:

Code:
Event::Attach(eventKillTrak, KillPop::handlekillpop);
That attachs the event to a function. For a list of events try looking in you events.cs file. Just replace eventKillTrak with whatever event you want to attach the function to.

Code:
control::setVisible("Anim_Death_HUD", TRUE);
That code shows the animation HUD

Code:
control::setVisible("Anim_Death_HUD", FALSE);
That code hides the animation HUD. You may want to throw the above code into a function and then schedule it to hide using the schedule command:
Code:
schedule("Blah::Blerg();", 5);
That code will schedule the function Blah::Blerg in 5 seconds time. So you can schedule you HUDs to hide and show using the schedule command, or by attaching the show/hide function to an event.

Have fun.
 
Back
Top