How do I gradually increase the speed of a sprite?

Get help using Construct 2

Post » Sat Mar 28, 2015 10:28 pm

Hey everyone, I'm trying to make a platform game and I need advice on how to gradually increase the speed of a sprite. I want to increase the speed of the sprite by 1 pixel per second.
B
7
S
1
Posts: 34
Reputation: 536

Post » Sat Mar 28, 2015 11:44 pm

I'll assume since you're talking about acceleration you mean 1 px/sec^2. If you have direct control over the speed, set it to something along the following lines:

Code: Select all
speed = speed + dt   equivalent to    speed = speed + 1 * dt

If you're unaware of dt -- short for delta time -- I'd suggest looking at this useful tutorial.
Moderator
B
111
S
41
G
20
Posts: 1,586
Reputation: 19,046


Return to How do I....?

Who is online

Users browsing this forum: Kyatric, oddreal, oosyrag, waguilar and 3 guests