Game Development Community

Sometimes really little things can stump me

by Chris Boucher · in Torque Developer Network · 03/02/2009 (6:40 pm) · 3 replies

Heres the thing, in the Tutorial: http://tdn.garagegames.com/wiki/TGB/Tutorials/Breakout#The_Breakout_Tutorial_Part_1_-_Making_the_Scene
in the section "The Scripting begins" it says:

Start by opening your gameScripts/game.cs file and add the line below to the top of the startGame function.

function startGame(%level)
{
exec("~/exec.cs");

Ok, thats cool but I dont understand where exactly where to place it!

I have provided an image to demontrate my problem.

img9.imageshack.us/img9/1218/placementissue.jpg
Thankyou for your time.

About the author

Recent Threads


#1
03/02/2009 (6:55 pm)
When someone says to add something to the top of a function they are saying to have it be the first line within the function. Just like you have it in your pic and post.
#2
03/02/2009 (7:03 pm)
Thankyou, I was having a brain warp, kinda like when you can't spell a simple word and it just dosent look right. I'll try a bit harder before posting next time.
#3
03/02/2009 (7:13 pm)
No worries man, its always better to ask than to assume. What may seem like common lingo/semantics to some can be completely foreign to others.