Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17098

Change Font Colour In The Same Text

$
0
0

@Refetizm wrote:

Hi everyone,

I wrote a code for dialogues:

label = CCLabelBMFontAnimated::createWithTTF("", "fonts/PressStart2P.ttf", 20.0f,
	Size(visibleSize.width, 40),
	cocos2d::TextHAlignment::CENTER, cocos2d::TextVAlignment::CENTER);
label->setTextColor(Color4B::BLACK);

label->setString("WE_HAVE_DOZENS_OF_PAPERWORK!!!");

I need to change “_” character’s colour to white. Is it possible ?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17098


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>