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.
ImageImageImageImageImageImage
Image
B
98
S
22
G
16
Posts: 1,338
Reputation: 21,202

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
91
S
31
G
29
Posts: 3,129
Reputation: 27,789

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
ImageImageImageImageImageImage
Image
B
98
S
22
G
16
Posts: 1,338
Reputation: 21,202

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: VnM2016 and 2 guests