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
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

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
359
S
214
G
72
Posts: 22,949
Reputation: 178,574

Post » Wed Nov 09, 2011 7:59 pm

No problem!
thanks.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests