Game Development Community

Really Really need help with scripting

by Ryan McKenzie · in Torque Game Builder · 08/25/2006 (11:16 am) · 4 replies

I'm sure that for somebody who doesnt have a clue what or how you use scripting, is one of theee most difficult things.

Well for me anyway.

My scheme for learning script was to learn the basics in scripting, through tutorials of C++.I followed two pages on teaching C++..............

http://www.intap.net/~drw/cpp/index.htm
http://www.cprogramming.com/tutorial.html#c++tutorial

Though the first page "www.intap.net" i followed every lesson there but more than half of them aren't complete ( they can't be accessed), I havnt learned the use of strings and arrays and theres only a couple of tutorials on functions that only teach you what a function does. Not how to use them.

So I searched for another page "www.cprogramming.com" and spent less than an hour just scanning functions and arrays and a couple more subjects that appear quite major in scripting. So I thought fuck it......without a clue on how the Tourque script runs and knowing the very basics of scripting in C++, I moved to TDN's Platform tutorial.

All went well until I got to my first encounter of scripting to make the character move left and right with the arrow keys, well here's the page:

http://tdn.garagegames.com/wiki/Torque_2D/GenreTutorials/PlatformerMovement

And from there I followed what he said and fucked up.....my character did NOT move left or right when he told me it should and to "try it out for yourself".....and so I did and RESULT: nothing

I'm following this Tutorial so I have the ability to make a game like "sonic the hedgehog"......the idea of what i want is clear in my head......but knowing that learning from the code used in this tutorial isnt working for me, well it's pretty obviouse I amn't writting the code properly or some other reason.....Either way i cant get round the probem!!!!

Anyone pleeeez help me out in some in which resulting that I can understand how to make a platform game like"sonic".

P.S sorry this was quite long....my hands hurt now :))

#1
08/25/2006 (1:11 pm)
When something doesn't work the console is a good place to start looking for the error. Do you have any error messages in the console log?

Doing Sonic-clone is something quite challenging and you will need some experience in programming and using TGB for this. This will take some time and will cause some frustration. Game programming just is a lot of work - even with TGB.

I don't know if the platformer tutorial is fully up-to-date. Have you tried this one?:
tdn.garagegames.com/wiki/TGB/MiniPlatformerTutorial

It seems to be quite new and more to the point than the other one.
#2
08/26/2006 (1:18 pm)
Hey...thanks alot for the heads up. I knew making a game like sonic would take some time, but i didnt know about this mini tutorials :))....combining the basics on this tutorial and the load of extras on the big one...im sure ill get through this.....

thanks
#3
08/26/2006 (1:50 pm)
Yeah, don't let these obstacles discourage you. It will be real work if you want to get it done but the outcome will countervail it for sure :)
#4
09/05/2006 (12:47 pm)
Just an FYI, I am very new to Torque, but I am not new to scripting or programming. C++ is a bear to learn, especially if you are trying to learn torque script. In torque you don't have to worry about memory addresses like in C++. If you want to learn more about programming, that will benefit your torque scripting, I would suggest looking at perl, or another language that handles memory allocation for you.

Also, there are alot of things that can go wrong, not just in the script. Check the directions very carefully and be sure you have all your settings correct in the level builder.

I had a huge issue with collision in my fishgame demo, until I realized that I named my game objects in the "name" field rather than the "class" field.

Good luck.