Auto scrolling level

Get help using Construct 2

Post » Mon Mar 11, 2013 3:35 pm

I tried http://www.scirra.com/forum/auto-scrolling_topic61635_post378313.html#378313 but nothing happened.

I have a left-to-right horizontal level.

Also, editing my post since it turned out blank when I posted it. Bugs, I guess.nickkname2013-03-11 15:36:26
B
10
S
4
G
3
Posts: 210
Reputation: 5,273

Post » Mon Mar 11, 2013 6:17 pm

You can add the scrollTo behavior to your (player) or object. Don't know what are you trying to do.
B
20
S
5
G
3
Posts: 53
Reputation: 3,310

Post » Mon Mar 11, 2013 6:28 pm

Have the player object be bound to layout.

Use (in the event sheet):

System: Every Tick -> System: Set scroll X to scrollx + 8 * dt (or whatever number you prefer)

This should move the screen slowly to the right every few seconds.Excal2013-03-11 18:29:05
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,194

Post » Tue Mar 12, 2013 9:38 am

Thanks everyone!

I used the scrollto and boundto behaviors and added:

Event: every tick
Action: player >set position to playerbox (image point 0)
Action: system > set scrollx to scrollx + 10 * dt

But the screen isn't auto scrolling, so I am very confused.
B
10
S
4
G
3
Posts: 210
Reputation: 5,273

Post » Tue Mar 12, 2013 10:49 am

If you're using 'system: set scroll' then you don't want the scrollto behavior on anything.
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Tue Mar 12, 2013 1:00 pm

Thank you, its working now :)
B
10
S
4
G
3
Posts: 210
Reputation: 5,273


Return to How do I....?

Who is online

Users browsing this forum: flemmig and 32 guests