Tint Sprite

Hi!

So I'm just curious if there's a way via scripting to change the tint of an events sprite.

I want to be able to use one sprite for multiple things and just change the tint of the sprite when it's something different.

Hoping there's a little bit of code I can write instead of needing to make a sprite sheet for just a bunch of different colored rocks. 🙂

Thanks in advance!
You would need to clone the sprite and tint it, otherwise the tint would apply to all events using the same sprite.


The ImageManager has a hue argument on the functions that load the images, so it might be worth checking if that handles it for you.
I'll admit I'm pretty new to the whole scripting thing. How would I utilize the hue argument of the ImageManager?
Do you want to do it yourself or get someone to make a plugin for you to do it?
Ideally I think it would be awesome to learn how to do it myself, but I'm not sure how complex it will end up being. 🙁
I've moved this thread to Learning Javascript. Please be sure to post your threads in the correct forum next time. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/tint-sprite.51541/