Suggestion to the Anchor behavior.

Discussion and feedback on Construct 2

Post » Mon Jul 08, 2013 3:57 am

@Ashley,

I would suggest a new alignment to the anchor behavior, the middle alignment.

Mobile games are giving hard times with puzzles like center a thing on the screen when you can't use letterbox and your layout have different sizes from each other.

Any question, please, feel free to ask.
Image
B
103
S
23
G
17
Posts: 1,348
Reputation: 21,969

Post » Mon Jul 08, 2013 4:03 am

Didn't you try this expression before:

(ViewportLeft("Layer") + ViewportRight("Layer")) / 2
and
(ViewportTop("Layer") + ViewportBottom("Layer")) / 2.


?
B
96
S
34
G
29
Posts: 3,138
Reputation: 28,234

Post » Mon Jul 08, 2013 4:20 am

I'm using an approach of your events, @Joannesalfa, but's consuming time to place everything on the screen using this math, while we could simple configure a existent behavior to take the job with one click.

But your solution is awesome and work very well
Image
B
103
S
23
G
17
Posts: 1,348
Reputation: 21,969

Post » Mon Jul 08, 2013 8:24 am

@TELLES0808,

Sounds like a smart idea! I was never quite sure why the anchor behaviour didn't include this option from the start?

+1 from me.
B
33
S
6
G
7
Posts: 494
Reputation: 8,252


Return to Construct 2 General

Who is online

Users browsing this forum: radbrothers and 6 guests