Would do me good
by rennie moffat · in Torque Game Builder · 10/06/2009 (12:50 pm) · 23 replies
Hi, I would like it, if someone could explain something that is very simple, and while I get what it says, in the code, I am trying to figure out how the computer is compiling this, random information (when I say random, I mean "turnSpeed" is not a term which is part of the basd code of Torque).
This is from the astroids control,
This is from the astroids control,
//I fully understand the purpose of this code. Where I am confused, //or wondering how, is how is it that "turnSpeed" knows how to TURN an object? %this.owner.setAngularVelocity((%this.right - %this.left) * %this.turnSpeed); //The only other reference to "turnSpeed" in the code is in the addBehaviorField(turnSpeed, "Velocity of turning (degrees per second)", float, 120.0); //Again, I get this, what each thing represents, but where I am lost is, how is "turnSpeed" associated with rotation. To me a simple see a float, but nothing to //officially do with degrees. Yet the object is turning. I wonder this because I would have thought to put a setRotation somewhere in the code. but non exists. //Can anyone explain to me how that works?
About the author
My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.
#22
Actually, I'm trying to be more helpful to you than any direct answers that can be given when I asked you what you saw wrong with the code.
And yes, William is very helpful, and no, I don't believe that you're trying to waste anyone's time. But I think you need to re-read what I wrote and instead of focusing on what I said about people burning out on answering the same kinds of questions from the same person, you should focus on the link I provided that details how the scripting language works.
If that is a waste of your time, then it's not, in fact, your time that was wasted. Just the same, I hope it helps.
10/07/2009 (12:59 pm)
Quote:If you choose to answer something that does not help me you are wasting my time
Actually, I'm trying to be more helpful to you than any direct answers that can be given when I asked you what you saw wrong with the code.
And yes, William is very helpful, and no, I don't believe that you're trying to waste anyone's time. But I think you need to re-read what I wrote and instead of focusing on what I said about people burning out on answering the same kinds of questions from the same person, you should focus on the link I provided that details how the scripting language works.
If that is a waste of your time, then it's not, in fact, your time that was wasted. Just the same, I hope it helps.
#23
I have just begun using the compiler/console. The ability to see my errors has just helped me immensely. For the entire time I have been on this board, I had no idea I could access this, well I did, but for some reason thought it did not work on my mac. It does though (@William, thanks).
The buttons to use are:
(Control + ~)
I will now need to post less frequently as I can see my own errors now.
Thank you!
10/07/2009 (1:11 pm)
Hi Guys, I have just begun using the compiler/console. The ability to see my errors has just helped me immensely. For the entire time I have been on this board, I had no idea I could access this, well I did, but for some reason thought it did not work on my mac. It does though (@William, thanks).
The buttons to use are:
(Control + ~)
I will now need to post less frequently as I can see my own errors now.
Thank you!
Torque Owner rennie moffat
Renman3000
I asked William who has been very helpful. I am not trying to waste anyones time. If you choose to answer something that does not help me you are wasting my time. I am simply asking questions to learn.