Run Track Speed?

Get help using Construct 2

Post » Wed Apr 15, 2015 1:11 am

I have a run track which is a scrolling background. The coding for the movement of my track is: RunTrack.X-(dt*200*RunTrack.Speed)

I want it to gradually increase in speed so i created a global variable called 'TrackSpeed', and every 2 seconds 5 is added to the variable.

Where in the RunTrack.X-(dt*200*RunTrack.Speed) equation do i integrate the global variable?
B
8
S
2
Posts: 146
Reputation: 1,132

Post » Wed Apr 15, 2015 1:08 pm

Cant you just try to add it different places, and see what it does?
But would guess that it should be: RunTrack.X - (dt * 200 * RunTrack.Speed + TrackSpeed)
B
44
S
11
G
2
Posts: 1,181
Reputation: 6,816

Post » Wed Apr 15, 2015 10:23 pm

I figured it out. You were right it needed to be RunTrack.X-(dt*(200*RunTrack.Speed+TrackSpeed))
B
8
S
2
Posts: 146
Reputation: 1,132


Return to How do I....?

Who is online

Users browsing this forum: Ajbael, drexegar, Phacanu and 8 guests