Fading Objects in T2D
by Peter Robinson · 09/23/2015 (2:19 pm) · 0 comments
Fading is the Future!
I've just created a pull request to add my new fading functions to T2D! They're built around fadeTo() and have support functions that mimic moveTo() and rotateTo(). FadeTo() allows you to change the blendColor of an object over time. That means you can fade a wall out that a character walks behind or cause the character to blink red when hurt. The possibilites are endless and I've been using script versions of these functions for years in my game, Pirate Code. I can't imagine life without them.I've create a pull request which I hope makes it into the dev branch. Things seem to be clogging with the pull requests right now so this is my gentle nudge to keep it moving.
Documentation
I've also written my changes into my copy of the wiki. You can read more on these pages and hopefully copy them over to the real wiki when the pull request is merged.Blending Guide
There's a full description of how fading works at the bottom. Also see...
Callback Guide
SceneObject Guide
Please let me know what you think. This is my first major contribution to the game engine and I'd love to hear your feedback. Thanks!
About the author
A programmer who has been using the Torque2D game engine since the early adopter days. My game is Pirate Code and it can be found at www.circuithive.com. It will be arriving on Steam in 2016.
