Problem text

Discussion and feedback on Construct 2

Post » Fri Feb 13, 2015 2:32 pm

When I test my game CocoonJS the Text comes in different position in the browser. Why this happens?

If I create a layout 960 x 640 and which will play has 1334 × 750 resolution the text would escalate or smaller?
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Fri Feb 13, 2015 2:51 pm

use anchor behavior
B
9
S
3
G
1
Posts: 128
Reputation: 1,116

Post » Fri Feb 13, 2015 4:50 pm

What exactly does "anchor" I try it and nothing changes
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Fri Feb 13, 2015 5:06 pm

You can fix a objetct in a screen position no matter what is the size of the screen, it will keep in that place: right up corner, left up corner, etc.
B
18
S
4
G
1
Posts: 143
Reputation: 1,868

Post » Fri Feb 13, 2015 6:32 pm

At anchor gets me:
left edge
right edge
to edge
bottom edge
In no event will any coordinates x and y
In CocoonJS continues without straying like in Browser

Sure what else to try different mobile goes misplaced ...
the desire to continue with the game are removed and any text
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Sat Feb 14, 2015 3:25 am

@statam it's because of different aspect ratios. also are you using the text object or Spritefont? CocoonJs has issues with Text Object.
B
42
S
17
G
2
Posts: 850
Reputation: 6,209

Post » Sat Feb 14, 2015 9:31 am

Use text object but not if scale objects with a higher resolution or text stays the same is iphone 4 or iphone 6 ...
If someone had a iphone 6 and would prove my game to learn how to be, would do me a favor :D
My english sucks :(
B
13
S
2
Posts: 297
Reputation: 1,717


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 4 guests