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 / Text border color

Author
Message
Hubert BAYRE
7
Years of Service
User Offline
Joined: 21st Oct 2017
Location: France
Posted: 15th Dec 2017 12:06
Hello !
Is there a command to set a text border color ? (Createtext)
Many thanks !
puzzler2018
User Banned
Posted: 15th Dec 2017 13:26
Hi

I have seen any, but we can create our own



You see how I did this?
D
Hubert BAYRE
7
Years of Service
User Offline
Joined: 21st Oct 2017
Location: France
Posted: 15th Dec 2017 19:45 Edited at: 15th Dec 2017 19:45
Thanks, but in fact just for the font characters (https://stackoverflow.com/questions/2570972/css-font-border)
adambiser
AGK Developer
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: US
Posted: 15th Dec 2017 19:59
If you just want a shadow, you can make a simple one using two text objects:

// Create shadow first so it is drawn underneath without messing with SetTextDepth.
CreateText(100, "Test")
SetTextPosition(100, 501, 301) // Offset from the overlay text
SetTextSize(100, 30)
SetTextColor(100, 128, 0, 0, 255)
// Overlay text
CreateText(101, "Test")
SetTextPosition(101, 500, 300)
SetTextSize(101, 30)
Hubert BAYRE
7
Years of Service
User Offline
Joined: 21st Oct 2017
Location: France
Posted: 16th Dec 2017 21:00
Thanks.

Login to post a reply

Server time is: 2024-11-24 04:48:00
Your offset time is: 2024-11-24 04:48:00