Timers and Spawning Actors
hackmodford
Member Posts: 48
Okay... my game is really coming along now. But I think I'm missing something in regards to timers.
Say every second I want to spawn one actor.
I create a timer event set for every second and in there put spawn actor blah blah blah...
But I will end up with around 4 actors... what am I missing?
Say every second I want to spawn one actor.
I create a timer event set for every second and in there put spawn actor blah blah blah...
But I will end up with around 4 actors... what am I missing?
Comments
I have it set
every 10 seconds
set attribute X to X+10
X starts out at 150
The first time it happens it goes up to 200
Later in in the game it starts adding only 10 as expected.
Got any ideas why it behaves like this? I know a way to get around it but this just seems wrong to me...
I figured out what it is...
Basically let's say I have an actor... we'll call him obstacle
He is set... every 10 seconds blah blah blah...
Well if there's more than 1 of these actors in the scene that timer gets repeated for however many times there is an actor.
So I created another actor to just hold rules that should apply only once and walla! problem solved.