How do I roll to another screen like Zelda for nes

Get help using Construct 2

Post » Wed Mar 25, 2015 9:25 pm

Hey folks, I wanted to do some screen transitions like the first zelda game for the NES. I want the individual screens to be static, but then scroll when moving to a new screen - shown in the gif below.

Image

Any suggestions about the best way to pull that off?
B
13
S
2
Posts: 30
Reputation: 1,277

Post » Wed Mar 25, 2015 9:38 pm

I've come up with the idea of when hitting a trigger placed at the edge of the screen:
1. make the player's 8-direction behavior disabled, then
2. moving the character's x position and the background's x position until they end up on the other side of the screen. Then
3. enabling the 8-direction behavior again.

This seems very messy to me so I can't tell if I'm on the right track.
B
13
S
2
Posts: 30
Reputation: 1,277

Post » Wed Mar 25, 2015 10:46 pm

It depends, are both the rooms in the same layout or each is their own layout?
The moderators are corrupt and ban for no reason, especially that condescending neckbeard asshole Kyatric. The forums are filled with fanboys.
Banned User
B
22
S
7
G
1
Posts: 558
Reputation: 2,925

Post » Wed Mar 25, 2015 10:48 pm

The method you mention in your second post is likely how anyone would advise you to go about it(if everything is on one layout). If done right, it should prove to be a relatively clean solution.
Moderator
B
111
S
41
G
20
Posts: 1,586
Reputation: 19,046

Post » Wed Mar 25, 2015 10:52 pm

@linkman2004

Wasn't there a plugin that do could this with layouts? I vaguely remember someone PMing me a demo showcasing it, might've loaded all the layouts at one though. Can't really remember though.
The moderators are corrupt and ban for no reason, especially that condescending neckbeard asshole Kyatric. The forums are filled with fanboys.
Banned User
B
22
S
7
G
1
Posts: 558
Reputation: 2,925

Post » Thu Mar 26, 2015 12:08 am

Instead of moving the background, try making an invisible sprite that takes up the whole camera space, and do a "Every Tick > Scroll To Sprite".

Then, on the trigger hit move the invisible camera sprite in the direction you want.
B
19
S
4
Posts: 104
Reputation: 1,340

Post » Thu Mar 26, 2015 2:26 am

I believe the zone demo will help you with what you want:

https://www.scirra.com/tutorials/747/zo ... a-movement
B
13
S
3
G
3
Posts: 35
Reputation: 2,731

Post » Thu Mar 26, 2015 9:23 pm

Wow - thank you so much! This is great!

You all ROCK!!!!
B
13
S
2
Posts: 30
Reputation: 1,277


Return to How do I....?

Who is online

Users browsing this forum: aldi45mts, Congrats2u, kabaal, oddreal, SondeepH and 13 guests