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.

Newcomers AppGameKit Corner / How to change text background colour?

Author
Message
hakimfullmetal
9
Years of Service
User Offline
Joined: 17th Feb 2015
Location:
Posted: 5th Jun 2015 14:37
In Darkbasic Pro, there's a command to change the background of text colour, and to make the background transparent or visible, so the text would be more readable.

Is there a way to do this in AGK2?
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 5th Jun 2015 14:51
I think you would need to put a box/sprite behind the text. There are commands to get the text size, so that you can resize the box.

Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 5th Jun 2015 15:22
Or you could try giving your text image a background in an image editor... not sure what the result would be but it would be interesting (and easy) to find out!

Using AppGameKit V2 Tier 1
hakimfullmetal
9
Years of Service
User Offline
Joined: 17th Feb 2015
Location:
Posted: 5th Jun 2015 16:49
I see, thanks. I shall try those.

Login to post a reply

Server time is: 2024-11-21 15:27:20
Your offset time is: 2024-11-21 15:27:20