Game Development Community

Looking for a SetColor method...

by Hugues Huygens · in Torque Game Engine · 05/06/2005 (7:09 pm) · 5 replies

How can I change the color of my DTS-shape?
I made a shape without texture and it shows up white in the engine, now I want to change it dynamicaly while the game is running.

I would expect a SetColor method in the ShapeBase class but according to the documentation there is nothing like that.

About the author

Recent Threads

  • Show Tool?

  • #1
    05/06/2005 (11:20 pm)
    There's not. Might be able to animate color from within DTS? It would be pretty easy to add this to the engine, you can set an override color for the TS rendering code from the shape.
    #2
    05/23/2005 (3:45 pm)
    BUMP!
    #3
    05/23/2005 (4:41 pm)
    Not sure why you bumped this, Ben provided pretty much the best answer you are going to get :)

    1) There isn't a SetColor method.
    2) You can use the override color capability of the shape using the override texture functionality if you wish.
    #5
    06/29/2005 (10:01 am)
    This is what I needed. Thanx Bryce!