I am using custom font in andengine and when the user click that ui I need to change the color of my ui.Here is my code.
Text exit=new Text(250, 390, this.mPlokFont, "Exit");
exit.setColor(255,0, 0, 255);
scene.attachChild(exit);
but it doesn’t work. My font :
mPlokFont = FontFactory.createFromAsset(this.mPlokFontTexture, this, "Plok.ttf", 16, true, Color.WHITE);
Thanks in advance.
Try to use ChangeableText instead of Text