How do I platform move acceleration

Get help using Construct 2

Post » Sat May 30, 2015 2:10 am

Per second uniformly accelerated 8direction platform movement .
I want to implement to speed up my character x seconds under a pre-set speed.
// The characters per second maximum speed. 20 pixel per sec.
float maxSpeed = 20.0F;
// Five accelerate pixels per second.
float acceleration = 5.0f;
// Move deirection. This will include the direction of the character .
Vector2D dir = (0,0);
// delta time
dt
-------------------------------------------------------------------------------
Platform.Move(dir * maxSpeed * dt)
I can not figure out what I should do in the variable acceleration .
B
14
S
2
Posts: 66
Reputation: 776

Post » Sat May 30, 2015 8:14 am

i didnt understan you question pretty well, but if you want to make it to go faster every tick
|each tick| characcter.platformer.maxspd = maxspd+1
B
7
S
1
Posts: 28
Reputation: 481


Return to How do I....?

Who is online

Users browsing this forum: ditocruz and 17 guests