Jump to content


Photo

Drawing text only shows the first letter


  • Please log in to reply
10 replies to this topic

#1 Barling

Barling

    GMC Member

  • New Member
  • 122 posts

Posted 12 June 2012 - 09:43 PM

Everytime I use: draw_text(), it appears that on my android phone it only shows
the first letter/character of the string.

This started happening right after I updated GM: Studio to the update with the new Draw GUI event.

I'm using the Draw event still.
Anyone else got this problem?
Works perfectly fine on Windows, just only shows the first character of a string on Android.

FOR EXAMPLE:
If I were to do:
draw_text(x, y, "Hello World!")

It would only display: "H" on the android device.
On windows it would display: "Hello World!"

UPDATE:
Looks as though it's not the first character of a string, but the first character of
each LINE in a string that gets drawn.

So for example:
"Hello#World"
The letters: "H" and "W" would only get drawn and it would look like this:

H
W


on the android device.

Edited by Barling, 12 June 2012 - 09:47 PM.

  • 0

#2 Barling

Barling

    GMC Member

  • New Member
  • 122 posts

Posted 13 June 2012 - 03:54 AM

I've stress tested this and it just plain won't draw text no matter which draw event I use.
I've tried using different fonts, different functions:
draw_text()
draw_text_ext()

Nothing works.

Someone else MUST be having this issue.

Edited by Barling, 13 June 2012 - 03:54 AM.

  • 0

#3 sindiclesas

sindiclesas

    GMC Member

  • New Member
  • 1 posts
  • Version:Unknown

Posted 13 June 2012 - 06:46 AM

same thing is happening on my end.
this is really bad...my game depends on text and I was hoping
to get it finished within the week but now I cant.
  • 0

#4 allex24

allex24

    GMC Member

  • GMC Member
  • 41 posts
  • Version:GM:Studio

Posted 13 June 2012 - 09:57 AM

i have the same problem on android after todays update too.
For example the following variables i had on my screen in one of my game:
Score: 0
Lives: 3
Level  1
Next Level: 1000

now looks like:

S
L
L     1
N        1

Waiting for solution or update to fix it.

Edited by allex24, 13 June 2012 - 10:03 AM.

  • 0

#5 GameDevDan

GameDevDan

    Procrastinator

  • Reviewer
  • 941 posts
  • Version:GM:Studio

Posted 13 June 2012 - 10:30 AM

File a bug then: http://bugs.yoyogames.com
  • 0

#6 rwkay

rwkay

    YoYo Games CTO

  • YoYo Games Staff
  • 1407 posts
  • Version:Unknown

Posted 13 June 2012 - 12:34 PM

I have fixed this bug, it will only affect Android devices that use the Armv5 architecture - the standard C++ function wcslen was not functioning correctly on that architecture.

There will be another update at the end of the week which will fix this... apologies.

Russell
  • 0

#7 Shadow10

Shadow10

    GMC Member

  • GMC Member
  • 103 posts
  • Version:GM:Studio

Posted 13 June 2012 - 01:38 PM

I installed the previous version. It's working well now.

Edited by Shadow10, 13 June 2012 - 11:31 PM.

  • 0

#8 DoubleEdge

DoubleEdge

    GMC Member

  • New Member
  • 41 posts
  • Version:GM:HTML5

Posted 16 June 2012 - 09:02 PM

I have fixed this bug, it will only affect Android devices that use the Armv5 architecture - the standard C++ function wcslen was not functioning correctly on that architecture.

There will be another update at the end of the week which will fix this... apologies.

Russell


That is a major relief. I haven't done testing on my Android for a while, so the last time it was working perfectly, but today it would only show the first letter too.
  • 0

#9 Barling

Barling

    GMC Member

  • New Member
  • 122 posts

Posted 16 June 2012 - 11:27 PM

Anyone know when the next update will be released?
  • 0

#10 Hugo_Peters

Hugo_Peters

    herp derp

  • GMC Member
  • 447 posts
  • Version:GM:Studio

Posted 17 June 2012 - 10:57 AM

Anyone know when the next update will be released?

He just told you... :\
  • 0

#11 Shadow10

Shadow10

    GMC Member

  • GMC Member
  • 103 posts
  • Version:GM:Studio

Posted 17 June 2012 - 04:27 PM

I installed the 1.0.240 version again, now I have the same problem.
Is there anybody here that can send me a valid link to the 1.0.231 version?
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users