How do I make a scroll

Get help using Construct 2

Post » Sat Jul 12, 2014 11:05 pm

hi all, how do i make an automatic scrolling game horizontally?
i mean the scroll start at the beginign of the game.

thanks
B
44
S
18
G
7
Posts: 1,819
Reputation: 10,384

Post » Sat Jul 12, 2014 11:17 pm

every tick: scroll to x: scrollx + ([speed eg: 10] * dt)

Hope that helps! and it pauses the scroll when game is paused thanks to *dt
Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
145
S
50
G
20
Posts: 2,274
Reputation: 23,027

Post » Sun Jul 13, 2014 1:10 am

thanks a lot and how to make the speed progressive? :D
B
44
S
18
G
7
Posts: 1,819
Reputation: 10,384

Post » Sun Jul 13, 2014 8:05 am

no one?
B
44
S
18
G
7
Posts: 1,819
Reputation: 10,384

Post » Sun Jul 13, 2014 11:44 am

Use a "speed" variable instead of "10" and increase it depending on the level, time, etc.
B
44
S
15
G
6
Posts: 136
Reputation: 9,225


Post » Sun Jul 13, 2014 3:30 pm

how to use a speed variable???
B
44
S
18
G
7
Posts: 1,819
Reputation: 10,384

Post » Sun Jul 13, 2014 4:15 pm

imothep85 wrote:how to use a speed variable???


variable speed = 10

Every x seconds set variable speed to speed + whatever

every tick: scroll to x: scrollx + ([variable speed] * dt)
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,753


Return to How do I....?

Who is online

Users browsing this forum: dop2000, suman882 and 7 guests