How do I: RPG with changeable clothing colors

Get help using Construct 2

Post » Sat Mar 01, 2014 1:11 pm

The RPG I'm designing will have various items the user can equip. The player will be able to see the changes on his physical person in game, be it clothing or armor or weaponry.

I have an idea about how to do this, but I want to make as quick work of it as possible, so I was playing around and noticed "Adjust HSL". Would this allow me to, for example, create a glove animation using a black and white color, then depending on the properties of the item being made, give it a value to change the hue of the player's character's physical equipment? I know already I'll have to use various layers or z-order it properly because I'll have a number of equipable things.

Now my other option would be Spriter. Is it possible to individually change a sprite being used by the Spriter plugin during runtime in C2? That would make things much easier I think.
B
25
S
6
G
6
Posts: 262
Reputation: 3,690

Post » Sat Mar 01, 2014 2:24 pm

Bump. I am very interested in this, type in @fassFlash if it's solved.
HARMLESS SIGNATURE THAT IS VIEWED BY OTHERS AS OFFENSIVE AND CONTROVERSIAL
B
14
S
3
G
3
Posts: 356
Reputation: 4,377

Post » Sat Mar 01, 2014 2:46 pm

Adjust HSL won't work with a grayscale image - it requires some colour data to work with. But, yes, you've got the idea down.
B
57
S
15
G
11
Posts: 912
Reputation: 12,606

Post » Sat Mar 01, 2014 10:24 pm

@roracle Spriter has some new upcoming features that are about exactly what you are looking for. See their latest video (on youtube) and the companion Demo. Some of the features demoed aren't yet available but C2 will be the first platform to support them.. I hope soon.
Need help? Upload .capx file with your question.
B
16
S
4
G
2
Posts: 233
Reputation: 2,560

Post » Sun Mar 02, 2014 7:34 pm

I really like what they are doing. However I still have a question. Because inventory will be expandable in my game, and items aren't associated with colors, because users will be able to color anything (within reason of still being appealing in the game world) any color they want.

@GeometriX you mentioned a grey-scale image without colors to work with. What if I had one animation in a grey-scale sprite set aside as a 16x16 image holding the 256 colors I need? Would that be able to trigger the HSL feature, and would that method work with Spriter imports as well?
B
25
S
6
G
6
Posts: 262
Reputation: 3,690

Post » Mon Mar 03, 2014 6:39 am

Bumping if anyone knows the answer to the "color" questions?
B
25
S
6
G
6
Posts: 262
Reputation: 3,690

Post » Wed May 21, 2014 12:53 am

@roracle did you ever figure out how to do this?
B
56
S
15
G
13
Posts: 825
Reputation: 17,643

Post » Wed May 21, 2014 9:00 am

If you cant use sprites to change colours maybe use canvas object?
B
109
S
25
G
43
Posts: 1,883
Reputation: 33,553


Return to How do I....?

Who is online

Users browsing this forum: adamebastin, Bro7hers, marcinkowski and 8 guests