Game Development Community

Question on learning Torque Script

by Smarty Pantsp · in Technical Issues · 07/24/2008 (6:59 pm) · 5 replies

I've heard that a good way to learn torque script is to learn C++ first even though it's a little harder. I was wondering if anyone thinks that would be a good way to go or just try and learn torque script first. I have no idea about anything related with script. I'm startin from scratch.

#1
07/24/2008 (7:25 pm)
Well it looks like you are a TorqueSDK owner, so you can feel free to learn both, even at the same time. I don't think theres necessarily a best order to do things in.

Learning TorqueScript shouldn't be too much trouble since theres so many tutorials and examples laying around.

Or course theres the 2 or 3 books on Torque which are definitely worth getting for someone new.

For C++ I'd say pick up a general book on it, since theres tons all over. Actually heres a good one online...
Think in C++

Scour the TDN and try everything in your own testbed project for the experience! The same goes with resources, try integrating some just to see if you can and to get your C++ feet wet.

I dunno if that helps, but good luck to you.
#2
07/24/2008 (8:01 pm)
Yea tha helps alot. I think I'll try learning both because it can't hurt to know alittle extra. I found a pretty good online C++ tutorial. It's something like Cprogramming.com . I'll look for a few good torque script tutorials in TDN also maybe even buy a book. Thanks.
#3
07/24/2008 (8:18 pm)
Oh one other thing, the recently posted Plastic Games Gems series of resources serve as a some good TGE scripting and C++ tutorials.
#4
07/24/2008 (8:39 pm)
I second the Thinking in C++ book. Most tutorials are rather superficial, but that book goes deep with plenty of examples, and has helped me think in different ways.
#5
07/24/2008 (10:07 pm)
Thinking in C++ and thinking in TorqueScript are two completely different things (C++ is fully Object-Oriented, TorqueScript is not at all).
What the people who tell you to learn C++ first typically mean is, if you're completely new to programming, you should learn C-style syntax from somewhere else, since there are many more books and tutorials for absolute beginners on C and C++ than on TorqueScript. Once you've learned the syntax of C, you will feel much more at home at TorqueScript.

I would have to recommend the book I learned to program off of, Visual C++ for Dummies. Of course, when I read it oh-so-many years ago, it was for Visual C++ 5 - the current C++ for Dummies book probably isn't even written by the same guy...

EDIT: I'm sorry, I just realized many of these terms are probably confusing to someone who's never heard them before. To clear things up:
- OOP (Object Oriented Programming) is a special way of writing programs in which you break the problem down into 'objects,' which interact with one-another in various ways. There are many paradigms for programming, but this is probably the most popular.
- C is an old programming language from the 70's that got very popular. C++ is C with OOP - for various reasons, although C++ is (usually) backwards compatable with C, the two are considered separate languages and C is still around today.
- Visual C++ is Microsoft's programming environment for C++, which is actually available now for free.
- C-style languages are programming languages that derive their syntax from C (despite the fact that there are much better languages out there to derive your syntax from - people don't like to learn new things, I suppose). Learning one C-style language if you already know another is like learning one romantic language if you already know another - it's much easier than starting from scratch. C-style languages include C, C++, C#, Java, Javascript, PHP, Pawn, and (of course) TorqueScript.