1. ## Gradual speed increase help

I want an object to constantly add 1 to the speed every 2 seconds, and I've noticed that you can do this like this:

New Condition - Always
Then in the always row, under the object, click movement, then "set speed to", and enter "(seconds/2)+10"

And it works, except after a little while (when the speed reaches about 70), it resets to about 10 and starts the speed increase event all over again.

I'm guessing it's a "max speed" issue, so is there any way to disable a maximum speed? Or is there a better way to do what I'm trying to do?

2. ## Re: Gradual speed increase help

+Always
+Speed is < 70

--> Set Speed to "(seconds/2)+10"

stephen1980

3. ## Re: Gradual speed increase help

The timer count "seconds" will reset to 0 every minute, and won't ever exceed 59. Try the following which will increase the speed by 10 every cycle, but won't exceed 150: (pseudo-code)
Code:
```• Always
+ Set speed to Min (150 , speed + 10)```

4. ## Re: Gradual speed increase help

I might be mis-understanding what your after here, but are you not over complicating this

Why not just use

Every 2 Seconds
Set speed of object to speed of itself + 1

?

5. ## Re: Gradual speed increase help

I want the speed of the object to increase by 1 every 2 seconds, forever.

So it will keep getting faster and faster (without ever slowing down or resetting)

Steph, your solution didn't change anything...
Oliver, your code just gave me a syntax error... Exactly what part of it am I supposed to enter?
and Spike, that's what I've already done, and it doesn't work.

6. ## Re: Gradual speed increase help

Actually, Spikes method should work perfectly. What type of movement are you using?

Every 2" --> Set speed(object) to speed(object)+1

I use that on most of my particle effects and it works perfectly with bouncing ball movement.

7. ## Re: Gradual speed increase help

Okay I played around in the event editor and this code snippet seems to do what you need it to do

Instead of adding to the object's speed directly, add 1 to the object's Alterable Value A every interval and always set the maximum speed of the object to the value of Alt Val A.

I have the movement set to eight directional in this example and it works.

I just used .5 seconds for faster testing, obviously you'll want to change that to whatever number you need.

Note: setting max speed value might not be ideal if you don't have the acceleration maxed, but if you play around you should figure out what you need. This is just basic code, and you will need to customize and put restraints on the max value to be added to Alt Val A, Alt Val A's initial value, etc.

8. ## Re: Gradual speed increase help

Again, I can't see how my method doesn't work and is simpler?

From your post you haven't done what I suggested, as my method wouldn't ever slow down and would keep going.

Dunno :\ the other methods work, but they just appear to be work arounds.

9. ## Re: Gradual speed increase help

What I sort of forgot to mention (sorry) is that my object is randomly spawned every second, and is destroyed when it reaches the bottom of the screen, so Shawn, your answer would have worked, but it makes each spawn start out at zero and gradually increase speed until it hits the bottom... I need the over all speed for every instance of my object to increase.
And spike, yours didn't work at all, it doesn't slow down, but it doesn't ever speed up either. Here's how I interpreted your method:

"Every 2 Seconds - Set speed of object to "object speed"+1
And it just stayed going the same speed forever. Don't know why...

10. ## Re: Gradual speed increase help

Originally Posted by Spike
Again, I can't see how my method doesn't work and is simpler?

From your post you haven't done what I suggested, as my method wouldn't ever slow down and would keep going.

Dunno :\ the other methods work, but they just appear to be work arounds.
Well in testing it, your method only works if you add to max speed. And if you let go of the arrow keys, the val for whatever reason seems to be resetting for max speed. In theory that code you posted should work, but it didn't for me unless I overlooked something.

Originally Posted by TheWonkits
And spike, yours didn't work at all, it doesn't slow down, but it doesn't ever speed up either. Here's how I interpreted your method:

"Every 2 Seconds - Set speed of object to "object speed"+1
And it just stayed going the same speed forever. Don't know why...
I had the same results when testing his method. Again, in theory that series of events should work, but it doesn't.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•