Game Development Community

Character selection gui

by James Ford · in Torque Game Builder · 05/06/2007 (10:38 am) · 1 replies

I would like to have multiple buttons which show animated sprites, for selecting a character. I tried making each button a small scenewindow and loading a sprite into each one (which works) then putton a button on top of it--but this of course covers up the window. And when the button is 'not' visible then it also cant be clicked. Hmm I bet theres some handy mouse events I could script to work with a scenewindow... checking that out.

Horray for scenewindow mouse callbacks! If anyone else wants some help setting something like this up let me know. I am actually going to use keybinds to allow them to select the character with the keyboard or joystick.

#1
06/06/2007 (1:34 pm)
Scenewindow callbacks are one way, but it may be simpler just to make a blank (transparent) image and use that for your buttons.