an example of scroll, scale and parallax

Get help using Construct 2

Post » Thu Nov 10, 2011 6:02 pm

Hi i made this example

demo

capx


its got easing of scroll, scale, and parallax with 2 layers

it also has a follow scroll and at the end the scroll is fixed on the player with platform movement

i think a lot of people are wondering how these things work so i hope this helps!

note:

lerp(layoutscale,1,0.5*dt)

how this lerp works?:
layoutscale = current scale
1 = target scale
0.5*dt = is how fast it will go from current to target, larger is faster

ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Thu Nov 10, 2011 8:18 pm

If the player has the "scroll to" behavior it will stil work?
B
18
S
4
G
5
Posts: 149
Reputation: 4,498

Post » Thu Nov 10, 2011 10:36 pm

i think it interferes with it so i dont use the scroll to behavior because you dont have control over it, maybe later if the behavior is extended, for now i think this is the best way so you can switch scrolls on and off
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Thu Nov 17, 2011 12:21 pm

Vtrix. Thank you. This is much better than the ScrollTo.
B
14
S
2
G
6
Posts: 110
Reputation: 3,849

Post » Tue Dec 20, 2011 8:04 pm

THNX for sharing...it`s a big help for me!
B
17
S
3
G
5
Posts: 71
Reputation: 4,401

Post » Sun Feb 12, 2012 10:47 pm

Question regarding this:

I'm making a vertical scroller, (player starts at the bottom and moves to the top, shooting his way through for power ups etc)

I want the 'level' to be small width, but of course a long length. Is it advised to use layout properties of example: 1024x10000?

Or will a size like that hurt my framerate etc? I know i can probably set the objects to not be created until the player gets to a certain point on the map.

Also, as with all vertical scrollers, once the level has scrolled passed the bottom of the screen, the player cannot return (if they miss a power up, that's it... no going back)

How do i implement something like this?
B
2
Posts: 4
Reputation: 258

Post » Tue Feb 14, 2012 6:32 pm

i created something like that in classic, a doodlejump clone :) but it created it totally random, i made it spawn a platform on a counterinterval only when the platformcount was lower then a certain number, so i knew there where only so much objects in the game constantly, and ( also destroyed them when too far from the player, i dont know how far you can go with a premade level, i also thought of some kind of levelblocks that where randomly put together, so you have a premade levels but still some randomness , but never implemented :)vtrix2012-02-14 18:33:20
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Tue Feb 14, 2012 6:59 pm

Very nice example, it's a much more interesting scrolling effect than ScrollTo. My only problem is that once it's on the player and the player's running around, it takes too long to catch up to him. For anyone who wants to change that: I changed the 0.8*dt in both of the "Scroll to" lerp actions to 2*dt instead and it's a lot faster.

Other than that, great job!
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Wed May 09, 2012 6:05 am

Thank so much, It's very awesome !!! ... ^^
B
3
Posts: 4
Reputation: 438

Post » Wed Dec 05, 2012 6:03 am

Wow this is freakin awesome !! Thanks Guys.. Ideas are starting to rumble
B
4
Posts: 9
Reputation: 768

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests