Game Development Community

Highlighting/Blinking/Intensity for a sprite

by Gerald Fishel · in Torque Game Builder · 08/15/2007 (1:13 pm) · 2 replies

Hi all,

I'm currently porting a game over to T2D from another game engine. There is a fairly simple (I think) effect that I want to be able to do with T2D that I can't quite figure out.

Basically I have a tilemap with some background tiles. Then I have static sprites that are the game pieces drawn over the tiles. When I select a piece by clicking on it with the mouse, I would like to be able to mark it as being selected by making that sprite brighter as if lit. There are also times when I want it to blink, i.e. get brighter and then go back to normal colors.

Is there any way to increase the intensity of sprites being drawn? Or do I need to make an overlay texture and blend it with the sprite? If so, is there a way to blend just the sprite and the overlay, while not affecting the background?

In the engine I am porting from I think it is using lighting on the selected sprites, but I dont see any reference to lighting in the T2D docs so I'm assuming that's not possible here.

Any ideas on how I can best approach this in T2D would be most welcome.

Thanks,
Gerald

#1
08/17/2007 (2:44 pm)
You could try for a new effect using particles, but I don't know if you want it to be an exact match.
#2
08/17/2007 (3:02 pm)
Hi Jason,

Thanks for the response. I actually discovered that Photoshop has a lighting color overlay effect that gives me the exact effect, so I just created a new set of 'lit' sprites and overlayed them, and it seems to work okay.

Thanks,
Gerald