Hello everyone!
I just was wondering if there is a way to change the color of SpriteFont during the execution of the layout..
Any idea?
I believe you have to use effects to do that. If you don't want to use effects then you would have to add different versions of the sprite font colored how you want them and switch between them if I'm not mistaken.
What type of effect? What's his name?
Like I said I've never done it. You would have to play around with them to find out what you like and what would work with your application. Off the top of my head I would think that the effect SetColor might be a good place to start.
Yes SetColor will do it but see my current thread about weird effects in the editor. AND it doesn't seem to really give the colours you specify... play with it and let me know what you think.
SetColor doesn't seem to work for me at all. I guess my preview doesn't webGL?
Develop games in your browser. Powerful, performant & highly capable.
SetColor is just what I wanted! Thanks!
codah I just needed the red and green, so I do not know if the the nuances of colors work, however, the change from green to red works.
Unnatural20 Yes, I think this is your problem