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 : character normal, bold and color

Author
Message
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 26th Oct 2017 11:16
Hi

Do you know if there is a way to set some part of a text in color or bold ?

For example, if I have this text :


Do you know How I can set the character between and in bold, and the character between [color=255] and [/color] in red ?

Is there a function made by a user to do that ?

Thanks a lot
AGK2 tier1 - http://www.dracaena-studio.com
smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 26th Oct 2017 11:28
SetTextCharBold( iTextIndex, iCharIndex, bold )
and
SetTextCharColor( iTextIndex, iCharIndex, red, green, blue, alpha )
you can get the charindex by counting the letters (if you know the string) or using the left, right, len commands etc
life's one big game
spec= 4ghz, 16gb ram, AMD R9 2700 gpu
Kevin Cross
21
Years of Service
User Offline
Joined: 15th Nov 2003
Location: London, UK
Posted: 26th Oct 2017 11:33
That's handy! Thanks smallg. I thought I'd have to create a function that creates and position multiple text ids last time I thought I'd need to colour and bold parts of the text.

Login to post a reply

Server time is: 2024-11-24 12:33:41
Your offset time is: 2024-11-24 12:33:41