i want an object to change color. i mean, if it gets hit, i should be turn red, or anything else. i mean, every pixel should turn red on that object which are not transparent.
i tried to use ink effect, but those are depending the bast colours of the object.
and that would be the best, if it could be done without any extension.
and i want this effect not to be permanent. i mean, i want to remove this colourchanging thingy.
It saves 50 images/seconds, wich might seem inefficient, but I tried it with a 320x240 pxls object and still got full frames/seconds. Plus, you should make make it only work when your object's animation changed, not all the time like in this example.
I don't have the time to comment it right now, so if something is unclear, just send me a PM.
If I understand you correctly the best thing to use is MMF2's color replacer. It's built in and I use it all the time and it's awesome. Right now I use it for when my guys get diseased so their skin turns green and when they get cured it goes back to normal. Much better than an ink effect that messes with every color in the sprite.
You just go to (I think) animation -> replace color -> and then you give it the exact RGB value for the color you want to replace on your object and the exact RGB values for what you want it to change to. When you do this it'll replace every instance of that color in every single pixel in the whole sprite. Every animation too. It's so helpful!
When you want to change it back again, just do the opposite. There are some minor limitations to using this I've discovered through trial and error and here on the boards: First, replacing colors causes a TINY delay when it happens. It's very small but it's there. Secondly, if you have more than one instance of the same object it'll replace EVERY instance of that object's colors. It can't just change the colors of the one object, it does them all. Even if you use fastloops it doesn't matter. The last thing is that the effect doesn't carry over from frame to frame if you want that, so in that case I usually make an event right at the top of the event list that does it right away.
Also make sure that you just replace the color once (maybe you could turn a flag on or something to prevent it from continuously replacing the object's color). If you by accident have it constantly replacing the colors it'll cause a big slowdown.
I'd try this method out if I were you.
Edited by Del Duio
--
"Del Duio has received 0 trophies. Click here to see them all."
"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"
DXF Games, coming next: Hasslevania 2- This Space for Rent!
thanks for your replies dudes!
i just wanted to make the object change its color for a while and turn back to nomal without adding an additional animation.
i did not want to add a new animation because the object should stay at the animaion as it is. so while he is walking, he should be walking for a while as red.
it'd work as the blinking while the enemy gets some damge.