Side scrolling problem(s)

Get help using Construct 2

Post » Sun Sep 09, 2012 3:55 pm

Hey guys,

I've got a small problem. Two actually.

First off all, I'm making a side scrolling RPG. Kinda like mario. I'm now trying to keep a textbox in the upper right corner where ever the player is moving. That being said, I'd also like to know how to center the player so the player stays in the middle of the screen unless he reached a side of the layer. I'm using platform for this.

Thanks
B
4
Posts: 17
Reputation: 534

Post » Sun Sep 09, 2012 4:08 pm

1) Set the text box to be in a new layer, then, set its paralax to 0,0;
2) Just use the Scroll to Behavior on the player, or, do a customized "scroll to". Using the search button you'll be able to find many samples of custom "scroll to" made with events;

http://www.scirra.com/forum/how-do-ifrequently-asked-questions_topic45416.html
ImageImageImageImageImageImage
B
92
S
19
G
12
Posts: 1,190
Reputation: 18,267

Post » Sun Sep 09, 2012 4:54 pm

thanks for the quick reply, I'll try the second in a moment but how do I set an objects paralax?
B
4
Posts: 17
Reputation: 534

Post » Sun Sep 09, 2012 5:26 pm

Fixed the second problem. But I still can't get the text box to stay in my upper left corner...
B
4
Posts: 17
Reputation: 534

Post » Sun Sep 09, 2012 6:18 pm

place the text box on the layer with parallax 0,0.

The parallax is on the layer configuration window, on the left side of C2 by standard.

If you don't know where your text is, click on it and see on the left side what is written inside the "layer" field.
ImageImageImageImageImageImage
B
92
S
19
G
12
Posts: 1,190
Reputation: 18,267

Post » Sun Sep 09, 2012 6:24 pm

Thanks, it's fixed now! :D
B
4
Posts: 17
Reputation: 534


Return to How do I....?

Who is online

Users browsing this forum: LaroTaio, Radulepy, tarek2, TiagoCesar and 18 guests