Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / agk::SetTextString doesn't work on Android

Author
Message
Kaev
9
Years of Service
User Offline
Joined: 13th Dec 2014
Location:
Posted: 13th Dec 2014 13:43
Hello,

I've just started to use AGK2 and i'm developing for Android with C++.
I have the following text:


Now i want to change the text. I'll do it like this:

When i run it on my Windows computer, everything works like a charm, but on Android the text doesn't change. Does anyone know why? Is it a bug?
Dybing
12
Years of Service
User Offline
Joined: 12th Sep 2011
Location: Bergen, Norway
Posted: 14th Dec 2014 20:26 Edited at: 14th Dec 2014 20:35
Have you tried:

- assigning a font to your text
SetTextFontImage(textID, fontID) // assuming you use a custom font
- specifying depth of text in relation other elements (sprites etc)
setTextDepth(textID, 0) // 0 = highest layer
- made sure the text is supposed to be visible
SetTextVisible(textID, 1) // easy to forget, muy importante!

my standard text function:

Kaev
9
Years of Service
User Offline
Joined: 13th Dec 2014
Location:
Posted: 17th Dec 2014 11:00
Im not exactly sure why it didn't work, but after i deleted the project and created a new one, it worked like a charm. Dunno what happened there. :s

Login to post a reply

Server time is: 2024-04-25 20:09:10
Your offset time is: 2024-04-25 20:09:10