Actor's spawns gradually increase in speed.

Hey guys,

I'm creating a game where a actor will repeatedly spawn on the right side of the screen and move towards the left side of the screen.

Every 1 second I have a new spawn of the same actor created.

The actor and its spawns' velocities should start at 350.

I'd like to make it so the actors as a whole will speed up as time goes on.

Also, I would like to have a maximum speed/velocity that the actor to be capped so it doesn't get too fast. For the sake of the discussion, let say that number is 1000.

Please note: I'm not trying to get each individual spawn to accelerate; rather, I want each new spawn of that actor to be slightly faster than the one before it. For example, what I DON'T want is for the spawn to start at the right side of the screen traveling 350 and be going 1000 by the time it's at the left side of the screen. Instead, I want the first spawn to be traveling at 350 and approximately 30 seconds later a new spawn (with 29 other spawns in between) would be going 1000.

I've been trying to figure this out for the last five hours, but I'm COMPLETELY stuck. I tried following some of the instructions for similar questions, but they seem to describe how to speed up one actor, not an actor and all its spawns. Since I'm such a newbie, I'd really appreciate it if you could possibly give a step-by-step with clear instructions. Also, sorry if my terminology is off...

Thanks!

Comments

  • fadamionfadamion Member, PRO Posts: 309

    You can do an attribute that every spawn adds velocity to the global velocity.

    ex.

    Every 1 seconds spawn actor
    actor speed is attribute "x"

    X is a attribute

    If X<1000
    Every 1 spawned actor. Change attribute x to +50

  • sportserhsportserh Member Posts: 2

    Wow, thanks!!

Sign In or Register to comment.