tModLoader Requesting Rainbow color Projectile (color changing)

BTMModder

Official Terrarian
Hi im working on my mods with a projectile/weapons but i got stuck at one point that how i would get the rainbow dust to work?
Ex.Ark of the Element from the @CalamityMod (the projectile ones)
if someone can tells me how to get that to work,I'd be a very very happy modder :)

EDIT: I figured the code out you can get the code from ExampleMOD aka.Elemental Unleash
 
Last edited by a moderator:
I don't have exact code, but an idea of what would work: when you spawn dust, you can spawn it with the exact color of the dust. If you add a variable that increments and decrements to the weapon code, for R, G, and B of the color, you could make dust/projectiles have varying colors. You'd need to figure out the exact rate at which to increment it, though.
 
Back
Top Bottom