Quantcast
Channel: Super Mario Bros. X Forums
Viewing all articles
Browse latest Browse all 2636

LunaLua • colorSwap - recoloring NES sprites was painful

$
0
0
This is a small script I wrote to change the color of the outlines on NES sprites, though it works to replace any color with any other
Beware transparency and screen effects of course, Also I don't know how well this will work on multiplayer.

Preview (Flashy Colors Warning?):
Spoiler: show
Image
Image

How to use:
Spoiler: show
on a luna.lua file, put this line:

Code:

local colorSwap = require("scripts/colorSwap")
Then you have these two functions to use, you call them from the function onCameraDraw(camIdx):

Code:

-- To replace a color use:colorSwap.replaceColor(camIdx, priority, replacedColor, replacingColor)-- This one is similar, but you provide a table of the color for each section, so it changes automatically.-- You also provide a default color incase the color of the section isn't found.colorSwap.replaceColorFromSection(camIdx, priority, replacedColor, replacingColorTable, defaultColor)

Download:
https://drive.google.com/file/d/1LyQhCP ... sp=sharing

Statistics: Posted by Lusho — Wed Feb 26, 2025 8:09 pm



Viewing all articles
Browse latest Browse all 2636

Trending Articles