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
37
S
15
G
7
Posts: 1,680
Reputation: 9,612

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 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
116
S
41
G
17
Posts: 2,204
Reputation: 19,545

Post » Sun Jul 13, 2014 1:10 am

thanks a lot and how to make the speed progressive? :D
B
37
S
15
G
7
Posts: 1,680
Reputation: 9,612

Post » Sun Jul 13, 2014 8:05 am

no one?
B
37
S
15
G
7
Posts: 1,680
Reputation: 9,612

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
43
S
14
G
6
Posts: 132
Reputation: 9,115


Post » Sun Jul 13, 2014 3:30 pm

how to use a speed variable???
B
37
S
15
G
7
Posts: 1,680
Reputation: 9,612

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,708


Return to How do I....?

Who is online

Users browsing this forum: David181, evillair and 60 guests