Does TGF support colour cycling? I looked it up in help and internet but it's not mentioned anywhere.
Printable View
Does TGF support colour cycling? I looked it up in help and internet but it's not mentioned anywhere.
I know how to replace colours on an object during the game, but I dont think that is what you want and its a bit of a frame rate killer. If you use the replace colour function, and click on calculation then retrive the RGB at a pixle of the object you want to change and OK it then click on calculation, you could replace it with a colour that is a function of the current colour. Getting it to cycle though the colours though is a little beyond me, it probably needs a bit of mathmatical jiggery pokery. Please tell me if I have been any use.
PS. My method is a compleate pain in the ass if your object has lots of colours.
Hey it's not a bad idea - it'd be impossible to pull off in my case, but still good to know.
a pixel shader would work better, since it could affect single instances of objects instead of all of them (but you could easily make it affect all of them if needed), and it wouldn't put you into a situation where you irreversibly "merge" color blocks, which is easy to do with Replace Color... and since shaders only change the output image and not the source image, you wouldn't need to worry about getting an existing color every time you wanted to change it
problem is, the shader would need a crapload of parameters... but it shouldn't be any more than the number of events you'd need for Replace Color, anyway