Game Development Community

Different button shapes

by Academy of Interactive Ent. (#00 · in Torque Game Builder · 08/12/2008 (12:01 am) · 1 replies

At the moment we are using different shaped buttons to access the different states of the game.

but with a button like a circle you can still click in the top left corner of the button and the event be called,
how can i make it so the buttons have a event radar no bigger then the actual button???

#1
08/12/2008 (12:06 am)
Without modifying the GuiButton class(es) a button will always be defined by a rectangular shape.

This a t2dStaticSprite (or any sceneObject) you can define a collision polygon and it will respond to events only within that collision shape. So you might try using a sceneObject for your button.