I don't know if this is a question or a statement or just a rant, but I noticed when you use the Get Sprite Palette command on a sprite with a default palette it returns -1, which is correct, I know. I feel like it would be useful in certain circumstances if it returned the actual palette instead. If I'm adjusting palettes by increments it doesn't really work. Say the default palette is 5 and I want to bump it up to 6 so I add one. Well now it's going to be 0 instead.
In a weird way I feel like it should work both ways.
Get Sprite Palette
Moderators: marionline, SDHawk
Use the get sprite default pal command.
- Bob the Hamster
- Lord of the Slimes
- Posts: 7660
- Joined: Tue Oct 16, 2007 2:34 pm
- Location: Hamster Republic (Ontario Enclave)
- Contact:
A little wrapper script could make this a lot more convenient to work with:
Code: Select all
script, get current sprite pal, handle, begin
variable(result)
result := get sprite palette(handle)
if(result == -1) then(
result := get sprite default palette(handle)
)
exit returning(result)
end