I'm using a counter for the expression... 'add one to counter everytime a movement key is pressed. This works fine but each level is made of four sub-levels or phases. At each sub level the counter sets to zero. I also need a second counter for the accumulative total of each counter on each sub-level.
eg: lets say phase one (of level one) is completed in 12 moves. The game then continues with phase two (of level one) with the counter set at zero (which is default) and another counter with a minimum value of 12 (the score from the first phase) which will be added to as the game progresses.
In other words I want a score for each phase independently and a total score for all four phases added together... not much to ask is it?
I've tried all the obvious things like set counter '2' to the current value of counter '1' but to no avail as it always sees it as zero.
Tell the second counter to do exactly the same as the first, but dont set it to zero, or when there is a new phase, add the first counter value to the second counter then reset the first
You use an action to reset the counter to 0, right? Can't you add the first counter value to the second counter value just before you set the first counter to 0? Event orders matter, ya know?
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
Muz, that's the point, on each new frame the counter resets itself to zero every time The current value at the end of each frame is lost. How do I retrieve that information?
Biax, I've looked in Global values but don't understand it. The main title is current value... underneath that is value number (from 0-15) and a global value.
I've given up with it... something that should be so simple to do!
Oh, you meant transfer them between frames. I thought it was something on the same frame or so.
Don't worry, it's very simple. What program are you using? I'm not sure if you can tick the global object thing in anything less than MMF 1.5.
If you don't have 1.5, just do the global values thing. It works just like your everyday counter. Except it uses a value number instead of a name.
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.