How do I Anchor middle

Get help using Construct 2

Post » Mon Mar 03, 2014 9:05 pm

How do I anchor in middle of screen or relative (like 10% left of center)?
B
4
Posts: 12
Reputation: 655

Post » Tue Mar 04, 2014 7:38 pm

you can use, or do some maths with the following values:


ViewportBottom(layer)
ViewportLeft(layer)
ViewportRight(layer)
ViewportTop(layer)


Return the viewport boundaries in layout co-ordinates of a given layer. Not all layers have the same viewport if they are parallaxed, scaled or rotated separately.

from the manual
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Thu Mar 06, 2014 11:18 pm

Thanks, solved
B
4
Posts: 12
Reputation: 655


Return to How do I....?

Who is online

Users browsing this forum: adventurist, Blendi1223 and 25 guests