Is there a way in MMF2 to make it so "When this happens, wait 3 seconds then do this."? The way I have been doing this before is using an active object and telling it to start moving when the even happens, then after it has gotten so far do the next event. There must be a better way then this?
Any help much is appreciated
Tell 'em Babs is 'ere...
Deleted User
10th August, 2007 at 13:39:44 -
Yeah, basic way:
(thing happens)
--> set flag 0 on
--> set Alterable Value A to 0
Flag 0 is on...
Add 1 to Alterable Value A
Flag 0 is on
+ Alterable Value A >= 150
--> (then do this)
That's relying upon you using MMF2 at 50 frames per second. Alterable Value A = 50 is one second in this case. If you're using a different framerate then to set the right delay, do numberOfSeconds * frameRate.
Yarr, timer events can be deceiving; Like Phizzy said you can set a counter or value to 3x the framerate, and subtract 1 from it each frame. The "timer object" events, including "restrict action for..." and "every..." don't operate as you might think; they use the base system time, meaning they operate in REALTIME, not gametime, so even if your game drops below 50 FPS, they will still function every 3 seconds of real-time. The main problem with these is that if you pause your game by holding the ALT key, or other means, it will treat it as 3 seconds have past.
So its pretty good to use in-game timers for all gameplay aspects, like phizzy said, and reserve timer-based actions for unimportant stuff like visual effects or particle sprays.