How do I make text change colour?

Get help using Construct 2

Post » Sat Aug 27, 2016 11:15 am

Let me add to this, I know how to change text colour through events and actions easy enough. But what I want is the text to change to black or white accordingly to what colour is behind it, so if it's dark and black: the text will change white. If it's bright and white: the text will change black.

Now I'm pretty sure you can do this with Effects and Blend Mode, but I can't get it to work. Now I don't know if it's just because I'm stupid and doing it totally wrong or getting one little thing wrong, but if anyone can help me that'd be perfect.

Right now I've got it set so that it changes the colour of the text to white when my time system hits evening, and back to black when it hits dawn.

Image
(If you can't see the black/white text appear in the bottom right corner, zoom your browser out, sorry)

This isn't as useful because there are some sprites in my game that are really dark or just straight up black, when the text is over these sprites through the day it's just impossible to see it; same goes at night, when the text is white and over brightly coloured sprites it's impossible to see it.

If someone could help me with getting around this without having to mess around without using the "Object overlapping" event as much as possible, that would be perfect. Thanks.
----------

If you need a hand with anything, just drop me a PM.
B
8
S
2
Posts: 29
Reputation: 560

Post » Sat Aug 27, 2016 12:09 pm

Why don't you just create another gray box when the text appeared?
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,469

Post » Sat Aug 27, 2016 12:35 pm

I've done that in the past, but I don't like the way it looks; it takes a lot of screen space up and makes the game look really messy, even more so than it already is.
----------

If you need a hand with anything, just drop me a PM.
B
8
S
2
Posts: 29
Reputation: 560


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests