Constant position

Get help using Construct 2

Post » Thu May 03, 2012 2:31 pm

Hi, this (thumbstick(Mobile)) is a really nice virtual joystick and i would love to make something
similar in my own creations.

Let me ask a question. It's not really a question about the controller itself but the placement of the controller. When I chose to view full screen in browser in crop mode the control don't stay in the bottom left corner.

How would one make the joystick to no matter what screen size/resolution/horizontal or portrait view (on touch-devices) stay in the bottom left corner?
My game Petrolhead Tactics is now on Steam Greenlight. I could not have done this without C2 ? Please rate, if you like!

Steam client already open: petrolheadtactics.com/steam
Web: petrolheadtactics.com/greenlight
B
20
S
4
G
4
Posts: 132
Reputation: 4,130

Post » Thu May 03, 2012 3:35 pm

Use the Anchor behavior on all the objects you want positioned. Anchor the top edge to window bottom. More info in supporting multiple screen sizes.
Scirra Founder
B
373
S
218
G
84
Posts: 23,439
Reputation: 186,068

Post » Fri May 04, 2012 9:03 am

Yes! The solution lies in the anchor behavior. Specifically top edge to window bottom. I don't know how many times I wrongly looked for a solution in some strange variable and totally overlooked the properties panel. Some day I might write a tutorial "Don't overlook the properties panel".

Thank You very much Ashley!
My game Petrolhead Tactics is now on Steam Greenlight. I could not have done this without C2 ? Please rate, if you like!

Steam client already open: petrolheadtactics.com/steam
Web: petrolheadtactics.com/greenlight
B
20
S
4
G
4
Posts: 132
Reputation: 4,130


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests