About anchor

Get help using Construct 2

Post » Wed Sep 07, 2016 9:57 am

I am creating a game (1280x790) I have two identical images long 640 and 640. The problem is when I try it on an iPhone or any other mobile device.
Image
Here it is perfect

Image
Here unused "anchor" would come out a white piece at the end

Image
Here if you use "anchor" top right, the second image moves to the end

I have also tried to stretch the image, but stretches to the end, but the first image stays the same, so do not go the same
What I want is that the two images are stretched equally ... been trying and trying and do not get it, see if you can help me :D
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Wed Sep 07, 2016 1:18 pm

:roll:
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Thu Sep 08, 2016 10:09 am

Nothing?
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Thu Sep 08, 2016 1:55 pm

I think you'd be better off using the viewport expressions, will see if I can do a quick exemple..
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Thu Sep 08, 2016 2:01 pm

Submit a bug report if you think its a bug.
Image ImageImage
B
170
S
50
G
179
Posts: 8,378
Reputation: 113,425

Post » Thu Sep 08, 2016 4:52 pm

Aphrodite wrote:I think you'd be better off using the viewport expressions, will see if I can do a quick exemple..

Yes, please. Thank you ;)
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Thu Sep 08, 2016 6:07 pm

that's the first time I share with onedrive, let's hope that works out.

https://1drv.ms/u/s!AjkoCSebIn9JiXP74TT2E9q6EL8K

I hope the exemple is clear enough. for more infos on those expressions, see: https://www.scirra.com/manual/126/system-expressions
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Thu Sep 08, 2016 7:24 pm

But with sprite it works too? I put a red and yellow box to the example... thanks
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Fri Sep 09, 2016 6:20 am

Yes it should work but the origin point or the sprites should be at the top left, keep in mind it might deform them though, you will have to try it and see if it fits your needs
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Fri Sep 09, 2016 10:10 am

Aphrodite wrote:Yes it should work but the origin point or the sprites should be at the top left, keep in mind it might deform them though, you will have to try it and see if it fits your needs

Mind if I spend my capx by private? do not worry if you can not :D
B
13
S
2
Posts: 297
Reputation: 1,717

Next

Return to How do I....?

Who is online

Users browsing this forum: Studio Mercato and 8 guests