Log In  

Cart #dancedance-4 | 2020-06-25 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

First coding I did using PICO-8 trying to get used to it

and I made a character edit/select screen, lets you change colour of clothes/skin

P#78510 2020-06-25 19:32 ( Edited 2020-06-25 20:13)

Nice pixel art and animation, and cute rendition of Footloose!

I assume you're doing the colour selection by way
of pal() commands? When you choose any colour other than the default selections, the shaded variants of those colours don't change accordingly, so for example even with a bright green shirt, there is still the dark red shading.

Maybe you can set up a lookup table with corresponding shaded colours for each selection?

P#78539 2020-06-26 13:04
1

Thanks for the comments and suggestions, you are correct on your assumptions I am using pal() commands to swap the colours and my next task was getting the shading to match the correct colours for the shirt, also to have the menu show/hide and a moveable character

Let’s get researching lookup tables

P#78540 2020-06-26 13:19 ( Edited 2020-06-26 13:21)

"Lookup table" is something we call a table that’s used to find something associated with another thing. Example:

# mapping of bright colors to dark colors
shades={[8]=2, [12]=1}

shade=shades[bright_color]
P#78582 2020-06-27 17:34 ( Edited 2020-06-27 17:35)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 15:24:24 | 0.010s | Q:19