Do you use Crop&Scale?

Discussion and feedback on Construct 2

Post » Wed May 15, 2013 11:53 am

I don't know when I have to use crop or scale mode.
It's weird when I get different results from layout.
Only in Letterbox mode can preserve the position of HUD regardless of screen size, isn't it?
Why CocoonJS doesn't support letterbox mode?
B
23
S
8
G
1
Posts: 172
Reputation: 2,778

Post » Wed May 15, 2013 11:57 am

Have you tried to preserve HUD location by having them on own layer with parallax (0,0) and anchor behavior?
B
32
S
7
G
8
Posts: 312
Reputation: 8,467

Post » Wed May 15, 2013 12:08 pm

Yes, and it's not about camera moving or something. It's about display size.
If someone put HUD or sprites in the place, watching the window size line, that means he or she wants screen to show them in THAT place, not cropped by display border. In browser, you can deal it with letterbox mode, but in CocoonJS, you can't.
And I wonder what can I do with it.
B
23
S
8
G
1
Posts: 172
Reputation: 2,778

Post » Wed May 15, 2013 12:24 pm

And can you explain the Anchor behavior to me? I read manual many times but still I can't get it... Is it only for HUD? Anchor behavior in moving sprites doesn't work?
B
23
S
8
G
1
Posts: 172
Reputation: 2,778

Post » Wed May 15, 2013 3:06 pm

The anchor behavior pins the sprite to that spot on your viewport. So it will stay in that spot. So if you pin it to the upper right corner, it should stay near the upper right corner no matter what else is going on if HUD is set to no parallax and on its own layer.
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests