T2d primitive?
by Jacob Vann · in Torque Game Builder · 03/07/2008 (10:27 pm) · 4 replies
I can't seem to find anything on it, but I seem to recall t2d supported primitives like lines, rectangles, etc.? The references don't seem to mention them, and I can't find anything in TDN. Anyone know if they exist and where I can find info on using them?
On use I see for primitives -- I have a level-select map, and when the cursor is hovered over a particular level's button (a planet) I want to pop up a sort of "word bubble" with a round-cornered rectangle containing the name of the level and a triangle pointing to the planet (which would be moving slowly). The easiest way I could think of was building primitives, since the rectangle will be arbitrarily sized and the triangle-section needs to be able to point to the button properly from any position.
I think I can get a satisfactory effect with sprites, but I'd rather use primitives if they're available.
Any suggestions on how to approach a word-bubble effect would be appreciated. Essentially, making a round-cornered rectangle of arbitrary dimensions.
Thanks!
-Jacob
On use I see for primitives -- I have a level-select map, and when the cursor is hovered over a particular level's button (a planet) I want to pop up a sort of "word bubble" with a round-cornered rectangle containing the name of the level and a triangle pointing to the planet (which would be moving slowly). The easiest way I could think of was building primitives, since the rectangle will be arbitrarily sized and the triangle-section needs to be able to point to the button properly from any position.
I think I can get a satisfactory effect with sprites, but I'd rather use primitives if they're available.
Any suggestions on how to approach a word-bubble effect would be appreciated. Essentially, making a round-cornered rectangle of arbitrary dimensions.
Thanks!
-Jacob
#2
03/08/2008 (9:08 am)
I'm using TGB 1.6. Is the feature new in 1.7?
#3
03/08/2008 (11:45 am)
It's best if you use version 1.7.2. You can download from your account page.
#4
EDIT: TGB 1.7.2 was acting weird (animations not running, couldn't click on certain buttons in the editor) but a reboot fixed my problem.
03/08/2008 (1:36 pm)
I installed 1.7.2 and found the polygon tool. Thanks!EDIT: TGB 1.7.2 was acting weird (animations not running, couldn't click on certain buttons in the editor) but a reboot fixed my problem.
Associate Phillip O'Shea
Violent Tulip