Choose your own colors?

Started by Phemar, Wed 02/06/2004 05:54:02

Previous topic - Next topic

Phemar


I was just thinking...there's been adventures where you can choose your own name, (space quest), so why not and adventure where you can choose the colors for your chracter clothes?

You could have a GUI with three sliders, each going up to 63, one labelded red, yellow and blue or something, and then use:

SetPalRGB (1, GetSliderValue (COLOR, 1), GetSliderValue (COLOR, 2), GetSliderValue (COLOR, 1));

Usually now I would implement this in my game, but I don't think it would fit in with it...so here I offer it to anyone you wants to try it..!

Cheers!

Gilbert

Actually that's a good idea, but of course, make sure your game is 256 colours to use this feature.

Phemar


Or if you have a hi-color, maybe Chris can implement something like this:

Usually to create a stored number, (variable) you go int example;

Now maybe you go: rgb color=GetSliderValue (COLOR, 1), GetSliderValue (COLOR, 2), GetSliderValue (COLOR, 1); to store a color.

And then select hotspots on your sprite, hotspot 1, hotspot 2, etc. (hotspots added according to color)

Use something like SetSpriteHotspotRGB, (int sprite, int hotspot, color);

Maybe that? Maybe this is too complicated and we should just scrap the idea...

cornjob

Yeah, this works... I've done it in 256 color games. Another fun thing to do (if you have enough palette slots to spare) is to reserve some extra slots for "highlight" or "shadow" tones. For example, if you have a character with adjustable shirt color, you can also have shadow areas on the shirt that you set to a slightly darker shade of the shirt color (with 0,0,0 being the minimum, of course). But this eats up a lot of valuable palette slots if you plan to have adjustable clothes, skin, hair, etc. Also, sometimes it's hard to set up the palette and make sure you're using the right slots in your sprites.

Phemar


Well now I was thinking, perhaps instead of choosing the players clothes, maybe you can choose their talking color instead...Good Idea?

Gilbert

Yeah, should work too, but changing the talking colour just sounds like a small cusatomization as the game's option.

SMF spam blocked by CleanTalk