Anchor behavior

Discussion and feedback on Construct 2

Post » Wed Nov 09, 2011 9:55 am

I have not really seen any good tutorials regarding the anchor behavior.
I have a HUD sprite, it is a specific size. I want it to stay in the bottom centre of the screen however I want to be able to adjust the position at runtime (by y = y + 2 etc).

How would this be achieved?
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,644

Post » Wed Nov 09, 2011 1:27 pm

The anchor behavior is pretty simple right now, and is mainly for non-moving UI objects aligned with a corner. For that, it's probably best to calculate the position yourself with the WindowWidth and WindowHeight expressions.
Scirra Founder
B
382
S
222
G
84
Posts: 23,981
Reputation: 189,219

Post » Wed Nov 09, 2011 7:59 pm

No problem!
thanks.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,644


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests