by CCX » Sun May 08, 2011 5:03 am
I'm foreseeing possible need in the future to build my own custom swap trap out of other contraptions, to have better control over the color changes (eg. level may have non-playable mini-AI-controlled groups that shouldn't be subject to swapping, since it can't be done in a fair manner). It's not too hard to make it work, and I'm even able to get it to look pretty close to the swap trap, but I need some help replicating the varying tint.
I think I might be able to replicate it with 3 overlapping background contraptions of identical graphics, with red, green and blue tint, and then use modifytraps to vary the alphas of each to continually change the distribution of the 3 primary colors. It'll take a bit of experimentation though to make it look right, so it'd help a lot if you can simply give out the formula the game currently uses to continually vary the tint on the swap trap.