Re: Decrease "every" command
You could replace the "Every 2 seconds" event with an Alterable Value, and always subtract 1 from that value.
stephen1980
Re: Decrease "every" command
Quote:
Originally Posted by stephen1980
You could replace the "Every 2 seconds" event with an Alterable Value, and always subtract 1 from that value.
stephen1980
Yeah that's probably the best way to do it. Can use a counter if need be. You'll have to play around with values to time it right, as always subtract 1 obviously doesn't equal subtract 1 every second (it's faster). Does anybody know how the always add/sub 1 compares to the timer? I guess that would be related to the frame rate, but I don't have any numbers to go by.
Re: Decrease "every" command
"Always" = Once every frame, I think?
So if your FrameRate is set to 50, "Always" = 50 times every sec.
But don't quote me. :grin:
stephen1980
Re: Decrease "every" command
Quote:
Originally Posted by stephen1980
You could replace the "Every 2 seconds" event with an Alterable Value, and always subtract 1 from that value.
stephen1980
How do you just put an alterable value in as a condition? O.o
Re: Decrease "every" command
Use the "Compare Two General Values" under Special Conditions in the event editor. :)
stephen1980
Re: Decrease "every" command
Quote:
Originally Posted by stephen1980
"Always" = Once every frame, I think?
So if your FrameRate is set to 50, "Always" = 50 times every sec.
But don't quote me. :grin:
stephen1980
Yeah that makes sense
Re: Decrease "every" command
Quote:
Originally Posted by stephen1980
Use the "Compare Two General Values" under Special Conditions in the event editor. :)
...
Okay now I'm thoroughly confused.
What do I enter in the "Compare Two General Values" box
and how would I make that control the spawn rate of my object?
Sorry, when I said I'm a newb, I reallly meant it... lol.
Re: Decrease "every" command
Because when I click compare two general values, it asks me to do just that: compare two general values.
Which two values should I be comparing here?
Should I compare Alt Value B with Alt Value B (alt value A is already being used).
Re: Decrease "every" command
Use the following events:
+"Always"
--> Add 1 to Global Value A
+"Global Value A" = "100"
+Randomly Pick One Of Your Objects
--> Do Your Actions
--> Set Global Value A to "0"
To use the "Compare Two General Values" option, click on the top one and click on "Retrieve Data From An Object", choose Global Value A; on the bottom one type in 100, and click OK. This will compare if Global Value A = 100 (You may have to mess with this number - if your framerate is set at 50, this should work)
stephen1980