How do I add a combination of color AND text into a sprite?

Just started using Construct 2? Post your questions here

Post » Sun Jun 08, 2014 9:34 pm

Hey guys,
currently, I create .png images which is use for piano keys.
I load those images into sprites. Size wise, they are quite small but I don't think that is ideal.

I am wondering if there is a way to have a (any) colour as background PLUS a text object (which might or might not change per animation frame).

Basically, all I want to do is make a sprite .... for example. 100 wide and 200 high plus a single letter.

The advantage would be that it is much easier to change colour and font size etc...

Thanks :)
B
14
S
4
Posts: 190
Reputation: 1,735

Post » Mon Jun 09, 2014 1:41 pm

You can just make them as two separate objects, 1 sprite and one tilefont and then you place them where you want them. Then use the "effect" SetColor to change the color of them based on RGB values.
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,838

Post » Mon Jun 09, 2014 11:12 pm

Thanks nimos100!
B
14
S
4
Posts: 190
Reputation: 1,735


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests