Adventure Game Studio

Community => Adventure Related Talk & Chat => Topic started by: Phemar on Wed 02/06/2004 05:54:02

Title: Choose your own colors?
Post by: Phemar on Wed 02/06/2004 05:54:02

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!
Title: Re: Choose your own colors?
Post by: Gilbert on Wed 02/06/2004 06:20:24
Actually that's a good idea, but of course, make sure your game is 256 colours to use this feature.
Title: Re: Choose your own colors?
Post by: Phemar on Wed 02/06/2004 12:54:57

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...
Title: Re: Choose your own colors?
Post by: cornjob on Wed 02/06/2004 13:59:31
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.
Title: Re: Choose your own colors?
Post by: Phemar on Fri 04/06/2004 04:43:48

Well now I was thinking, perhaps instead of choosing the players clothes, maybe you can choose their talking color instead...Good Idea?
Title: Re: Choose your own colors?
Post by: Gilbert on Fri 04/06/2004 06:23:49
Yeah, should work too, but changing the talking colour just sounds like a small cusatomization as the game's option.