Global values are used: Direciton; Links; Sped.
Sidenote: Don't spread value and run a fast loop in the same event.
Printable View
Global values are used: Direciton; Links; Sped.
Sidenote: Don't spread value and run a fast loop in the same event.
It's the global values doing that? I can make them counters, but I thought they were only global between frames and not between everything.
In my experience it is global between frames but resets to 0 or the specified default when you restart the game.Quote:
Originally Posted by Brandon
Under MMF1.5 I used to have a game that crashed when restarted via F2 (rock solid otherwise). The crash report stated Associative Array as faulty, so it can be anything I guess.
MMF must do a lot of things at start so you should check your start of frame events and initialisation sections (trying to delay them via a timer condition for example.)
I know not to do that. The fastloop is completely unrelated with the spreading values.Quote:
Originally Posted by Joshtek
---EDIT---
I figured out what the problem was. The TimeX object doesn't reset it's timers when you press F2. So I added:
+Start Of Frame
-Stop All Timers
-Reset All Timers
and now it works perfectly.
Global values are not reinitialized when restarting a frame but they are when restarting an application.
Maybe an action to reset global values should be added to MMF2. :)
Actually, the fast loop will probably STILL break the spread values action, because after returning from the fast loop the selected object list is mucked up and it might not know which objects to spread to any more. I can't confirm it from here though, no MMF.Quote:
Originally Posted by Brandon
Even so, it still works fine with it in one event.