Spawner Not Spawning Quickly Enough?
FallingBoxStudios
Freelance Graphic DesignerMember Posts: 822
Hi, I'm trying to spawn the same ball actor over & over again to fall from the top of the screen to the bottom, but the only problem is that: one ball falls from the top of the screen, then by the time the ball goes out of the screen another one spawns again, so the balls fall down way to slowly.
The code in the ball actor:
Accelerate; Speed (random 100 - 300)
Direction; 270.
The code in the spawner actor:
Timer; - Every; (random 1 - 3) seconds
Spawn; Ball actor.
Is there anyway to speed it up? without it looking too crazy, basically I just want more then 1 ball to fall at a time. Thanks
- Hunter
The code in the ball actor:
Accelerate; Speed (random 100 - 300)
Direction; 270.
The code in the spawner actor:
Timer; - Every; (random 1 - 3) seconds
Spawn; Ball actor.
Is there anyway to speed it up? without it looking too crazy, basically I just want more then 1 ball to fall at a time. Thanks
- Hunter
Comments
change attribute;
self.motion.linearvelocity.y to (the speed you want) an example make it 300 maybe?
this will make the balls fall and stay the same speed while falling, you can adjust the speed to separate balls or randomize the speed or whatever you want, but i always use this method for platformers or any games.
GSINVENTION FREE TEMPLATES
GSINVENTION FREE TEMPLATES