Is there any way to easily revert an active object's colors back to the original colors it had before replace color was used?
Printable View
Is there any way to easily revert an active object's colors back to the original colors it had before replace color was used?
I've always been wanting this feature... I don't think the feature is there, so you might want to store the original colours in a value somewhere...
Maybe for now you can just have the object in it's original color and the object in the other color and when it calls for the change,.just create it. Delete/create and run the same events on both.
Yea, I remember doing something similar in my Mega Man color swap experiments. Just store the original colors somewhere in another active object, so that the objects will revert to their default frames when it restarts. :)
You could also give it an effect when the change happens,.like a fade in fade out effect. That would be nice. There's usually a way around anything your thinking of doing in a game no matter what it is with MMF within reason.
i have an idea, sorry if im teaching you to suck eggs.
when you try to change it for the second time did you try getting the rgb of the new colour, i mean like maybe mmf is confusing the new colour with the old colour? maybe it would be worthwhile adding a step in to always read the rgb of those coords and then maybe you can identify what its doing or not as the case may be.
[edit] i did have an object that was changing colours always and when it hit the edges of the frame, but i didn't try it after the sprite was deleted. i know also that the default black colour is rgb 8,0,0 and that took me a while to figure out.
ah ok, my bad :) i guess other than using a shader another option would be to swap out the sprite with another sprite with how you want it, which i guess is not the most efficient method :(
Shaders are the future?
Just a random add incase anyone is listening... I'd also like a feature to be able to restore an active to its original colors. XD
Please forgive my ignorance, do the shaders work cross platform?
Shaders are Windows only, and would require re-designing for other runtimes due to the fact that there are multiple shader languages. However, a few of the built-in shaders are supported in a few other runtimes (mainly the semi-transparency shader, which is, as far as I know, compatible with pretty much every runtime). Said shaders that are compatible with other runtimes are probably programmed in some way that doesn't use shaders for non-Windows runtimes, though, since those shaders weren't originally shaders, they were ink effects.
Thanks for explaining, i thought that was probably the case :) i remember in the dfa videos seeing a book called Shader X9 that looked pretty hefty and the 9th verion or release, i guess they can be used to do all kinds of fancy stuff
It looks like we might have this type of shader built in judging by one of the screenshots on Steam :)