Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Is there a way to display text with more than one color? For example:
"Status: <font color=green>open</font>"
Maybe I can use python for this, but I dont know how
You can't do that with the Text object.
Develop games in your browser. Powerful, performant & highly capable.
You can do that using Lucid's Spritefont plugin. Konjak and him talked about this exact thing around page 4 in the spritefont topic (I had to figure this out too a while back.)
I had a hard time pulling it off without the game crashing though; spritefont is kind of unstable..maybe make your own? R0j0 made a C2 example on bitmap fonts that should translate ok.
The problem is that I need to position the text dynamically, and spritefont can't be moved... but thx
Can't you attach ("pin") spritefont to an object? If not then nevermind. Pretty sure spritefont is the only way to do this unless you make your own text system :\
Spritefont has the "attach" event, but if I recall correctly, it doesn't work
Why not using two text instances? You can change the parameters independantly. To select the correct instance in runtime you could add a pv and use a condition.
Might try Canvas.
Write text, set position, set color, paste into canvas, repeat.....
I thumb for tulamide's idea, remember 7soul, you may add some private vars to the text object, just like an 'owner_id' or 'phrase_id', then pick them by that private, then maipulates it, just like move, resize, etc....
tulamide Yaottabyte newt
Thx guys, I'll try these ideas