Game Development Community

2d Gui rotation

by __._ · in Torque Game Engine · 08/18/2007 (3:07 am) · 5 replies

Simple question here ( maybe a bit noobish :P ):

Is there any possible way to rotate a GuiBitmapCtrl with just scripting ?

#1
08/18/2007 (6:22 am)
Hmm, what do you mean by rotating? Do you mean grabbing it by the corner and turning it on an angle, of do you want an in-game rotation, like a spinning button?
#2
08/18/2007 (6:58 am)
Well, Im working on a compass. So I'm trying to make a spinning arrow that can rotate in the compass :)
#3
08/18/2007 (7:06 am)
You're going to have a hard time pulling this off with script alone.

If you do manage to succeed, post a resource!
#4
08/18/2007 (9:05 am)
I believe there was a resource for a horizontal compass, like the ones you see at the top of an FPS HUD. I am not sure how you do a spinning compass, but for starters, try and find out how the speedometer in start.racing works. I agree with Tim, I think you will need to do some code modification.
#5
08/18/2007 (11:09 am)
Well, I must say I'm new to Torque and to game engines in general. I started this week. This is what I have so far :

www.e-msee2.com/screenshot1.jpgEverything is set and kindof works. The compass shows positions to objectives as you can see on the screenshot.
I just wondered, and it would look nicer, if there was any possibility to make an arrow rotating from the middle of the compass.