specific scrolling

Get help using Construct 2

Post » Mon Mar 17, 2014 12:44 am

Hi!

Is there a way to make the camera scroll to my player sprite but only on the X axis?
The trciky part is that the Y axis should be scrolled to certain heights depending on the part of the level, regarding of the player standing or the ground or jumping.

I guess I should create different invisible objects through the level so everyime one of those is onscreen it scrolls to it's specific details.

Is this too tricky? what would you reccomend?
B
5
S
1
Posts: 92
Reputation: 609

Post » Mon Mar 17, 2014 4:09 am

I'm thinking on something like this:

Image

Every "S" would be an invisible sprite that marks the Y scroll for each part.

The thing is how to make every S work only when the player is close to it (can it be made using always the same sprite or does every S have to be a different sprite?) and how to change smoothly from one scroll to the next.
B
5
S
1
Posts: 92
Reputation: 609

Post » Fri Mar 21, 2014 5:38 pm

thanks!! very useful answers :D
B
5
S
1
Posts: 92
Reputation: 609

Post » Fri Mar 21, 2014 6:12 pm

Did you want something like this? There are 2 different scroll to options in there.
You do not have the required permissions to view the files attached to this post.
B
17
S
4
G
3
Posts: 172
Reputation: 1,933

Post » Fri Mar 21, 2014 6:19 pm

thanks!! let's check.
B
5
S
1
Posts: 92
Reputation: 609

Post » Fri Mar 21, 2014 6:30 pm

I modified it a little. I think it's closer to what you want.
You do not have the required permissions to view the files attached to this post.
B
17
S
4
G
3
Posts: 172
Reputation: 1,933

Post » Fri Mar 21, 2014 6:56 pm

yes, ti would be something like that. the thing is how to make a transition in the scrolling so it doesn't shift so suddenly
B
5
S
1
Posts: 92
Reputation: 609

Post » Fri Mar 21, 2014 11:02 pm

Ouch... This one hurt my brain! But it was fun to get it figure out. In the Set scroll to Y line you can adjust the final 0.05 to change the scroll to speed. :ugeek:
You do not have the required permissions to view the files attached to this post.
B
17
S
4
G
3
Posts: 172
Reputation: 1,933

Post » Sun Mar 23, 2014 1:00 am

I can't find that 0.05 you mention! :o
B
5
S
1
Posts: 92
Reputation: 609

Post » Sun Mar 23, 2014 3:54 am

Sorry, I guess that one hurt my brain too much. I uploaded the wrong file. :oops: Here is the correct one.
You do not have the required permissions to view the files attached to this post.
B
17
S
4
G
3
Posts: 172
Reputation: 1,933

Next

Return to How do I....?

Who is online

Users browsing this forum: dop2000, KefiRocK, matriax and 9 guests