How do I add scroll down effect?

Get help using Construct 2

Post » Thu Jul 16, 2015 1:46 pm

Hi,
I'm developing a mobile game, in which I require to scroll all the objects down (Or simply give an effect of scrolling the screen up). Here is the scenario, the player jumps and lands on an upper platform, as soon as he lands on it the screen should scroll up to his position. This should happen every time he jumps onto a higher platform.

Please help.
B
24
S
7
Posts: 337
Reputation: 2,224

Post » Thu Jul 16, 2015 1:52 pm

Should be something like:

player on landed
platform pick nearest to player.y
> system scrollto platform.y
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 » Thu Jul 16, 2015 2:07 pm

@littlestain Okay, it's mistake for not giving complete details. Here is the complete scenario,

The game is about climbing up to a top platform. Player has to climb up by jumping all the top platforms. As he climbs up to a platform, screen should scroll up and create another platform above the player at random position. This game is a platformer game but the player will move only vertically not horizontally.

Screen (360, 640)

I tried what you suggested but it isn't working.

I hope you understood my problem.
B
24
S
7
Posts: 337
Reputation: 2,224

Post » Thu Jul 16, 2015 2:11 pm

ok..
Don't understand why my suggestion won't work, but maybe replacing the player on landed with player is on floor would work..

If not please share your capx or events, cause guessing won't really help anyone..
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 » Thu Jul 16, 2015 2:41 pm

@littleStain I just copied few events from InfiniteJumping-Temple but still it isn't working I don't understand why.

Here is the capx, please check


And could please explain what is ViewportTop in the event?
Last edited by sudeep98 on Thu Jul 16, 2015 3:04 pm, edited 1 time in total.
B
24
S
7
Posts: 337
Reputation: 2,224

Post » Thu Jul 16, 2015 2:53 pm

Ok first off all unbounded scrollig is set to no, so it will never scroll further than the layout-dimensions..
That's actually the reason no scrolling occurs at all at the moment..
Either increase the layout, set unbounded scrolling to yes, or scroll the trees over the layout instead of the other way around..

Secondly, if you have an event that scrolls every tick, like in this example, you probably should remove that if you want to change the scrolling..
the platform on landed event works perfectly if you remove that every tick event..
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 » Thu Jul 16, 2015 2:59 pm

unbounded scrolling? where to find that. I didn't even know there is such an option. @littleStain
B
24
S
7
Posts: 337
Reputation: 2,224

Post » Thu Jul 16, 2015 3:01 pm

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 » Thu Jul 16, 2015 3:04 pm

Found it, thanks alot. You are awesome. @littelStain

Also thanks for the suggestion.
B
24
S
7
Posts: 337
Reputation: 2,224


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests