How do I Keep UI objects centered in a "Scale Inner" Project

Get help using Construct 2

Post » Sat Jul 11, 2015 4:52 pm

@lennaert forgot something..
It was almost correct..

Object set position
X: VieportLeft("UI")+(ViewportRight("UI") - ViewportLeft("UI")) / 2
Y: ViewportTop("UI")+(ViewportBottom("UI") - ViewportTop("UI")) / 2
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Jul 13, 2015 5:40 pm

It should be a simple matter of setting it to the middle of the viewport as the posts in this thread already suggest. Check the origin is in the middle. If it doesn't work please post a minimal .capx with nothing else in it other than the object, with 50 events and lots of objects it's hard to prove it's not something else you've done that is breaking it.
Scirra Founder
B
397
S
236
G
88
Posts: 24,412
Reputation: 194,528

Previous

Return to How do I....?

Who is online

Users browsing this forum: Artcadev, brunopalermo, lahbach, PROxMTswatTR and 18 guests