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
Posts: 40
Reputation: 878

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 will save your life.:)
Posts: 318
Reputation: 7,710

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. =)
Posts: 8
Reputation: 393

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests