Game Development Community

GuiTextCtrl Velocity and Rotation?

by Arunas Ivanauskas · in Torque Game Builder · 03/12/2005 (9:58 pm) · 10 replies

Is it possible to implement the Velocity(X/Y) and Rotation for the GuiTextCtrl? I hope that these common features are(should be) implemented for all common objects. Has anyone an idea?

#1
03/12/2005 (11:49 pm)
Short answer... No.

anything outside the fx series of controls do not exist within the T2D gameworld.
#2
03/13/2005 (1:56 am)
Harold is completely correct. The "fx" stuff is the T2D stuff, all the rest is from the underlying platform.

It will become important, eventially, to form some kind of simplistic link between GUI widgets and the T2D world so although this isn't here now, you'll probably see some feature to help you out eventually although I'm not sure we'll ever add physics to GUI widgets unless they are developed as T2D objects, something which I'm positive people will do themselves as time goes by.

- Melv.
#3
03/13/2005 (7:51 am)
Ok. Thank you.
#4
03/13/2005 (9:17 am)
No problem. :)

- Melv.
#5
03/13/2005 (10:35 pm)
I'm already using T2D objects as GUI elements. :) It's just too cool to be able to shove them around and have them bouncing and whatnot.. usability issues aside, the effects are neat.
#6
03/14/2005 (12:30 am)
Really? That sounds cool. What kind of GUI elements have you constructed (apart from buttons that is)?

- Melv.
#7
03/14/2005 (3:32 am)
@Arunas, check out this very simple fxStaticSprite2D based text writer I made. Since the object is a standard T2D object, you can apply all the usual physics options to it.

It's a pure script implementation and wouldn't be good for a lot of text, though.
#8
03/14/2005 (9:59 am)
@Melv: I created buttons that each have their own scenegraph and camera because I wanted them to "zoom" when you mouse over (since no scaling functions exist yet). So onMouseEnter() just zooms the camera for their scenegraph and onMouseLeave() unzooms the camera. But you can also of course apply any forces etc to them, so they can bump around.

Edit: Oh, you said "apart from buttons." :) Well, nothing apart from buttons, actually. But any control could exhibit this behavior, and with the OO script resource, you could make all GUI controls T2D objects. I'm working on that.
#9
03/14/2005 (10:15 am)
It's so cool to see T2D being used for unexpected things. This is the kind of innovation that's fun to watch. :)

- Melv.
#10
03/14/2005 (11:42 am)
@David, your text helped me.:) , thank you! I am planing to solve my textctrl problems with the bitmap fonts and some scripting.