Game Development Community

Help with scripting

by Christopher Davidson · in iTorque 2D · 04/20/2009 (10:19 am) · 4 replies

I am very new to scripting and game building. I was doing the tutorial "Breakout" trying to get the hand of this. But I got stumped when it can to scripting. I have a MAC so I got TextMate to help. But in the first lines of script where it says

"Start by opening your gameScripts/game.cs file and add the line below to the top of the startGame function."
I opened the gameScripts opened fine but the game.cs file wouldn't open it says "Unable to read the dictionary of the application or extension because it is not scriptable."

So thats problem 1 any help would be great.

Second question is if I can get it opened do I put all the text into these files or do I drop them into textmate then somehow convert them over to this file? Thanks i advance for the reply's.


#1
04/20/2009 (3:56 pm)
I'll be real with you, I've seen your other questions, application development is not easy. Seems like you haven't done any programming before. We can't help you on that end, you have to learn it yourself.

With your experience, forget about making a Pocket God app clone, start simple, like Pong.

Check the basic TGB Tutorial on this site, don't jump to the breakout tutorial right away.
#2
04/20/2009 (5:02 pm)
Well for the record i've already done a simple app like PONG lol and I have a app in the app store. As far as programming I don't know very much, but I am learning. Where exactly is the BASIC TGB TUT on this site.
I thought that breakOut was a entry level.

And NO i am not making a PG clone I only inquired of it for the knowledge on how they did it was it all code or did they use a engine LOL.
#3
04/20/2009 (5:12 pm)
All resources are on the TDN
Various tutorials are part of the installation automatically
#4
04/20/2009 (5:43 pm)
The reason you are getting that error is because the extension .cs is being interpreted as a script file. I'd personally recommend downloading eclipse and getting the plugin for torque script syntax hilighting. Then you can create a project and a directory link to your source directory and edit all of the files in eclipse.