Align to sides issue on Android and CocoonJS

Get help using Construct 2

Post » Tue Feb 26, 2013 11:26 am

Remember that you should use a layer that doesn't use parallax for the viewport function.
B
22
S
7
G
3
Posts: 189
Reputation: 4,270

Post » Tue Feb 26, 2013 11:38 am

@superkew
Hello, I'll try soon!!!

Regards,
ghale
B
10
S
4
G
4
Posts: 42
Reputation: 3,091

Post » Tue Feb 26, 2013 11:45 am

But ScreenWidth and ScreenHeight in your example are global variables and not built-in functions, true???ghale2013-02-26 11:50:42
B
10
S
4
G
4
Posts: 42
Reputation: 3,091

Post » Tue Feb 26, 2013 12:18 pm

Yes, they are global variables.
B
22
S
7
G
3
Posts: 189
Reputation: 4,270

Post » Tue Feb 26, 2013 1:29 pm

@superkew
No, it not works

I've done this istructions:


On browser is ok, but on Android the 2 right icons (Voce and btnAvanti) don't touch the right edge of the screen but are a bit more on the left as can you see on this (ugly) image:


Any help, please?
B
10
S
4
G
4
Posts: 42
Reputation: 3,091

Post » Tue Feb 26, 2013 3:06 pm

I'll see if I can make a sample for you.
B
22
S
7
G
3
Posts: 189
Reputation: 4,270

Post » Tue Feb 26, 2013 3:43 pm

@superkew
I'll wait for it!

Thanks!
B
10
S
4
G
4
Posts: 42
Reputation: 3,091

Post » Tue Feb 26, 2013 3:47 pm

It seems to work for me. Let me know if it works for you?

https://dl.dropbox.com/u/19625130/AlignBlocks.capx
B
22
S
7
G
3
Posts: 189
Reputation: 4,270

Post » Tue Feb 26, 2013 3:48 pm

I just saw the bug in your code. If the variable doesn't match the function, you need to reset the variable correctly.
B
22
S
7
G
3
Posts: 189
Reputation: 4,270

Post » Tue Feb 26, 2013 3:51 pm

For reference for those who see this post and don't get the capx.

B
22
S
7
G
3
Posts: 189
Reputation: 4,270

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: Rezzon71, tarek2 and 25 guests