So I'm making a game that cycles through colors the sprite can turn into and I'm having a bit of trouble.


And this is the messy code:
if btn(4) then pal(12,2)
end
if btn(4) then pal(2,8)
end
if btn(4) then pal(8,12)
end
if btn(5) then pal(5,2)
end
if btn(5) then pal(2,8)
end
if btn(5) then pal(8,12)
end
if btn(5) then pal(12,5)
end



So I want to make a game that's satisfying to play with currently I have this:
function _init()
x=64
y=74
end
function _update()
if btn(⬆️) then y-=1
end
if btn(⬇️) then y+=1
end
if btn(➡️) then x+=1
end
if btn(⬅️) then x-=1
end
end
function _draw()
rectfill
spr(1,x,y)
print("blue square")
end
I'm not sure how to do the rectfill and fill it with color 2. I want to fill the background and maybe make z and x do something



How do I make the player 2 keys work? I'm trying to make s and f the movement for p2 but it won't work. It's just a little game movement thing. The code is here:
function _init()
position = 63
p = 63
end
function _update()
if btn(➡️) then
position+=1
end
if btn(⬅️) then
position-=1
end
if btn() then
p-=1
end
if btn() then
p+=1
end
end
function _draw()
cls()
spr(1,position,63)
player1score = 0
player2score = 0
player1name = "wooper"
player2name = "quagsire"
print(player1name)
print(player1score)
print(player2name)
print(player2score)
spr(2,p,73)
end


This thread is for ideas for my game.
The main character is a lil bird that changes color but I don't know what color he should turn with 1 dash and then again with 2 dashes.
This game is a Celeste type mod.

I don't know if he should have a scarf that changes color or if his body should so I need ideas.
I made a modded version of Celeste Classic 2 but with Madeline, where I changed some sprites, and gave you a dash in tutorial area.
play the original mod Here
Give me feedback on how well I did in the comments.
Have fun!



