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.
Develop games in your browser. Powerful, performant & highly capable.
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:
speed = speed + dt equivalent to speed = speed + 1 * dt[/code:b9cuhztl]
If you're unaware of dt -- short for delta time -- I'd suggest looking at [url=https://www.scirra.com/tutorials/67/delta-time-and-framerate-independence]this useful tutorial[/url].