How do I change the "scroll to" ?

Get help using Construct 2

Post » Sat Sep 20, 2014 1:46 pm

Hi guys, I would like that the player stays on the lover part of the screen, so that u can see more of the environment above the player. But the standard scroll too is fixing the player in the middel of the screen...can I change that ?

thanks :)
B
37
S
16
G
2
Posts: 447
Reputation: 4,865

Post » Sat Sep 20, 2014 2:00 pm

...just another info...my layout is VERY big...I don't know if this info will change ur answers... thanks :)
B
37
S
16
G
2
Posts: 447
Reputation: 4,865

Post » Sat Sep 20, 2014 2:16 pm

Instead of setting the scrollto behaviour on the player either set it on a sprite pinned to the player located above the player or use the system scrollto action and set it to player.x, player.y-200 (or whatever offset you'd like)
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 » Sat Sep 20, 2014 2:23 pm

..Hi I did it already before...but the movement of the player on the platform is visibly wors than before with just the scroll to behavior... is there another way ?

thanks :)
B
37
S
16
G
2
Posts: 447
Reputation: 4,865

Post » Sat Sep 20, 2014 2:29 pm

I gave you two ways..
- use the pinned sprite with the scrollto behaviour
- use the system scrollto action

Which of these once did you do before and was visibly worse?
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 » Sat Sep 20, 2014 4:46 pm

I pinned a square on top of my player sprite assigning to id the sctoll to behavior. That was not that smooth as movement.

What is the system scrollto action, is it not the behavior ?

thanks :)
B
37
S
16
G
2
Posts: 447
Reputation: 4,865

Post » Sat Sep 20, 2014 4:52 pm

The pinned sprite should be just as smooth, providing you pin once and not every tick (a mistake a lot of beginners make).

You answered the second question yourself, for an action is not a behaviour.
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 » Sat Sep 20, 2014 6:04 pm

ehm...is there somwhere a capx sample for the action ?
...to pin "on beginning of layout" is that ok ?

thanks :)
B
37
S
16
G
2
Posts: 447
Reputation: 4,865

Post » Sat Sep 20, 2014 6:08 pm

beginning of layout should be fine..
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 » Sat Sep 20, 2014 8:19 pm

ok thanks :)
B
37
S
16
G
2
Posts: 447
Reputation: 4,865


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 39 guests