Gradually Accelerate Actor with Timer Problem

no_loafingno_loafing Member Posts: 6
edited April 2012 in Working with GS (Mac)
I've searched the forums for my particular problem. I'm trying to make an actor speed up every 10 seconds. I created an attribute "time" with an integer value, and set accelerate speed for the actor to "time," and made a rule that every 10 seconds, "time" will increase by 100. It doesn't do anything.

I think the problem has to do with my initial rule. I set my game to start when "launch" attribute is false, and that is the trigger for actors to accelerate. I think that because it is a one time instance, it doesn't keep having any effect on the actors, so "launch" would need to be triggered false again for change to take effect. Anyone have a better way of making this happen?

Best Answer

  • SinequanonSinequanon Posts: 35
    Accepted Answer
    Why not just have a timer:

    Every 10 seconds

    Change Attribute: Self.Motion.Linear Velocity.X to Self.Motion.Linear Velocity.X + 100
    Change Attribute: Self.Motion.Linear Velocity.Y to Self.Motion.Linear Velocity.Y + 100

    or to 100 * cos(self.Rotation) and 100 * sin(self.Rotation), if it's supposed to be going in a particular direction (inserting the angle where self.Rotation is)
Sign In or Register to comment.