Calling all legendary game makers!
With all the cool new stuff that's been added to Gideros, what's the easiest way to achieve this:
1. Multicoloured text; ie. a line of text where you dynamically can set the colour of each word/letter.
2. Text outlines, ideally with the ability to offset it for the effect seen below:
I plan to translate my game into many languages, so ideally there would be a truly magic way of doing this in code, rather than manually by using bitmap fonts.
Cheers,
Niclas
Comments
You would need code to split the text and do the layout but that's not entirely difficult, except for multiple languages which might prove mildly braintwisting
Isn't there an easy way to colour in text nowadays? Didn't you have a neat library for that?
My LogWindow class has code for splitting text and stuff I think. It's on the forums somewhere
Gideros provided no facility to set the character spacing in fonts (I think) so I think my idea is a flop
1. The spacing would be off
2. Just increasing the size won't work with "holes", like the inside of the "o" for example.
It's tricky!
Likes: antix
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
@oleg two things; 1) thanks for the code, although it doesn't do what I want, rather just add a dropshadow. But still cool. And 2) Best to stick to English to keep the forum usable for the majority.
1. contour
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
In regards to the language, this forum uses English, so until that changes its best to stick to that particular language I think. If I started writing in Swedish, @hgy29 in French, @SinisterSoft in Northern, who knows where we'd end up?!
Likes: hgy29, antix, talis
chauvinism is bad!
Likes: antix
Dislikes: hgy29, talis
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Likes: totebo
Likes: luyimoon
Likes: totebo, Apollo14, antix, SinisterSoft, simwhi, TheCrypto
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
http://docs.giderosmobile.com/reference/gideros/TTFont/new
Likes: oleg
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Likes: oleg
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
https://deluxepixel.com
convert text to viewport
Likes: SinisterSoft
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
http://docs.giderosmobile.com/reference/gideros/Viewport#Viewport
Likes: totebo
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
https://deluxepixel.com
so everything works, the colors do not mergeLikes: SinisterSoft, antix
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
@hgy29 does this make sense?
https://deluxepixel.com
I have an overlay of setBlendMode overlays so I did not see mixing
Likes: SinisterSoft
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Likes: oleg
https://deluxepixel.com