Scrolling with char

Get help using Construct 2

Post » Wed Jul 03, 2013 10:00 am

Alright so I know I cn make the screen scroll with the char which makes the char be in the center of the screen at all times, i'm ok with that BUT i want it to be so that when I walk into a new area and the screen changes(i'm still not 100% sure on how to do that yet) that my char will be at the LEFT side of the screen and will start to scroll with the char when they hit the center point of the screen.
Much appreciated and Thanks in advance for the replies and help. :)
B
2
Posts: 3
Reputation: 156

Post » Wed Jul 03, 2013 12:40 pm

Once you're sure how to do that it's easier to answer your question.

But if in your current layout your character starts in the left of the screen if you create a new layout for your new area it should work the same.

If you want to have more control, you should use the action "system scrollto" instead of the scrollto behaviour and use events to change the scroll to during game-play.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Jul 03, 2013 10:39 pm

Can you explain what you mean by the action "system scrollto" instead of the normal "scrollto" that kidna confuses me. Like I add a new event, choose every tick, then add the action scroll to, but if it shouldn't be an object what exactly should it be?
B
2
Posts: 3
Reputation: 156

Post » Thu Jul 04, 2013 12:35 am

*kinda

It's in the system's actions section
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,471

Post » Thu Jul 04, 2013 7:22 am

[QUOTE=Whiteclaws] *kinda

It's in the system's actions section[/QUOTE]

Well way to be a douche and correct and one tiny spelling error.
But I know it's in the action menu

I just don't get the action scrollto compared to the normal scrollto. I've only seen the scrollto in the action menu.Exmix2013-07-04 07:22:45
B
2
Posts: 3
Reputation: 156

Post » Thu Jul 04, 2013 7:54 am

Often people use the scrollto behavior on a sprite, but if you are already doing it through events that's perfect.

In the event sheet you can change the system scrollto action to your liking.

You can do this in many ways. You could give the player a variable EnterNextRoom and check if this variable is true in the event sheet and change the system expression to scrollto somewhere else in case the variable is true..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: GrogIsGood and 8 guests