How do I place floating objects (UI)?

Get help using Construct 2

Post » Fri Jun 13, 2014 11:51 am

I do not know how to place a floating object (UI). How can I?
I need your support! Shape Swapper isn't complete without Bitcoin donations. Donate --->1QETAa8Z2swZ1sHZRbSk4mv5MvpUTi1wEi
B
9
S
3
Posts: 40
Reputation: 868

Post » Fri Jun 13, 2014 12:09 pm

UI or HUDs are usually placed on a LAYER above the game level and the LAYERS parallax and scaling amounts set to 0,0 and 0
this way it will always stay on the screen even if the player moves around
you can also use the Anchor behavior to fix it on the screen position

step 1 create a new layer above your game level using the layers tab in the project tree and name it "UI" or "HUD"
and set the parallax and scale settings to 0,0 and 0 for scale ( it can help to show parallax in the editor as well by checking the box...where it says so)

step 2 place all of your UI objects into this layer

they should now "float" above the game level

hope that helps
When in doubt..or you are lost in a Zombie apocalypse or someone is giving you a hard time..Remember one thing..... Read the Construct 2 Manual..it will save your life.:)
B
35
S
13
G
8
Posts: 318
Reputation: 7,685

Post » Fri Jun 13, 2014 3:43 pm

Be aware that if you try to place an object on that layout once you set the parallax, you'd be best off scrolling the view to the top-left of the layout first. Took me a while to figure out why my objects were disappearing as soon as I dropped them into the layout. =)
B
4
S
1
Posts: 8
Reputation: 393


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, David181, dop2000 and 15 guests