How do I create a static UI?

Get help using Construct 2

Post » Tue Jan 06, 2015 10:53 pm

I'm having trouble with a Doodle Jump-like game.
My character jumps on platforms and the camera follows the Y of the character.
My problem is: When it jumps over a certain Y a random cloud is created, but when it overpass the layout the UI elements doesn't follow the player position, so they stay static on the starting position (the Y on wich they are placed on the layout).
How do I set a static position on the screen for the UI?
Thanks in advance,
Antonio
B
3
Posts: 9
Reputation: 197

Post » Tue Jan 06, 2015 10:58 pm

Quick answer is to set the parallax of the UI layer to 0,0. Also look into global layers. And there are some good tutorials on this (search 'user interface' or similar. Good luck.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Wed Jan 07, 2015 2:43 pm

@codah I tried setting the parallax of the UI layer to 0, 0.
But doing this, it move the layer litterally out of the screen.
https://www.dropbox.com/s/8606zyn5wxkmq ... .capx?dl=0 here is the example.
I want the UI to be static and the player to jump on the clouds as it does in this example.
Can you help me?
Thanks in advance,
Antonio
B
3
Posts: 9
Reputation: 197

Post » Wed Jan 07, 2015 2:54 pm

As @codah mentioned, paralax = 0,0.

Did this in your own example and it worked fine...

See below:
example.capx


By the way, I'd suggest you add a Bound to Layout OR Wrap behavior to your player... :)
You do not have the required permissions to view the files attached to this post.
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
15
S
3
G
1
Posts: 329
Reputation: 2,012

Post » Fri Jan 09, 2015 4:15 pm

@brunopalermo
Thank you, I solved my problem! :happy:
B
3
Posts: 9
Reputation: 197


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 16 guests