- Joined
- Dec 30, 2015
- Messages
- 78
- Reaction score
- 47
- First Language
- English
- Primarily Uses
- RMMV
I had a cool idea to be able to highlight objects (events) in an environment but I had a look through the event commands, did a little bit of googling and hit a bit of a dead end. So. Basically, what I'm looking for is a way to apply a tint to the event sprite which fades over a set period of time. From the looks of it there's no way to do this via the standard event commands, right? Or have I missed something?
Alternately I though of maybe taking a code approach, but I suspect it's not as easy as doing:
event._image.tint(myColour);
Or simply doing an adjustment on the colour matrix (since I'll need to ensure I get back to my initial state). I'm thinking the path of least resistance is to copy the canvas' sprite in to a secondary Bitmap and add to the event container, then set all non-alpha pixels to my desired colour, then over time just adjust the alpha of the entire bitmap. When alpha === 0 then remove the 'tint' image. Open to suggestions though. Doesn't seem like the most performant of solutions though.
Alternately I though of maybe taking a code approach, but I suspect it's not as easy as doing:
event._image.tint(myColour);
Or simply doing an adjustment on the colour matrix (since I'll need to ensure I get back to my initial state). I'm thinking the path of least resistance is to copy the canvas' sprite in to a secondary Bitmap and add to the event container, then set all non-alpha pixels to my desired colour, then over time just adjust the alpha of the entire bitmap. When alpha === 0 then remove the 'tint' image. Open to suggestions though. Doesn't seem like the most performant of solutions though.

