Game Development Community

Ben R Vesco's Forum Posts

Thread Post Date Posted
How to use ScriptClass to extend a class? (solved) What if you try: [code] new ScriptClass (ParentName) { class = "ParentClass"; } new Sc... read more 08/05/2006 (12:27 pm)
An intriguing RPG plot. . . @Matt Reading through that whole description I just kept thinking, "that isn't a very biblical view... read more 08/04/2006 (11:48 pm)
Confusion about Datablocks and Objects Set position uses world coordinates where "0 0" is whereever you defined it to be. It's the center o... read more 08/03/2006 (8:29 am)
IsFile() isBroken after fileDelete()? Maybe it's actually caching the values in some circumstances. You can use setModPaths and getModPath... read more 08/03/2006 (1:07 am)
The posiiton I get from the castCollision is worng... When you set the position of your camera, you are actually setting the center of the camera, not the... read more 08/03/2006 (1:04 am)
IsFile() isBroken after fileDelete()? The list of files Torque keeps is only updated automatically at start up. To refresh it at any later... read more 08/02/2006 (8:04 pm)
Adjusting the size of a gui window The base gui will be stretched to your canvas extents. The extent is to set the relative size of the... read more 08/02/2006 (8:31 am)
Checking if an object exists or stopping onUpdateScene (solved) You can use isObject(%obj) to determine if an object still exists.... read more 07/31/2006 (7:31 pm)
Coordinate Conversion? [url=http://tdn.garagegames.com/wiki/TGB/Reference:_t2dSceneObject_Other_Methods#getLocalPoint.28.25... read more 07/31/2006 (7:30 pm)
Mount frustrations (solved) To simplify your code, it's completely legal to do: [code] %localPt = %targ.getLocalPoint(%targ.ge... read more 07/31/2006 (7:09 pm)
Still a noob Lots of people have talked about using MySql in their games so you can probably find plenty of threa... read more 07/30/2006 (5:55 pm)
Tetris / Chuzzle clones I think you have inadvertently answered your own question! Rather than coming up with one's own idea... read more 07/30/2006 (5:50 pm)
Next Level You could also just have one level file with one tile layer in it. Each time you want to change leve... read more 07/28/2006 (8:10 am)
Not calling level through button pressing screen So you have your level loading now? To get ride of the "startGame" button you should be able to j... read more 07/26/2006 (12:53 am)
Unable to find object 't2dScene Open your .t2d level in your editor. On the first line you'll see something like: [code] %levelC... read more 07/25/2006 (9:15 am)
Loading A New Level It probably doesn't load the level when you use $= because the class of your objects is not equal to... read more 07/25/2006 (12:22 am)
Not calling level through button pressing screen The good news is there is nothing wrong with your level. I put it in the BallPhysics project and it ... read more 07/25/2006 (12:18 am)
Loading A New Level [code] ==>echo("player" == "player"); 1 ==>echo("player" == "mommy"); 1 [/code] Notice torqu... read more 07/24/2006 (11:45 pm)
Default Project Questions. I feel the project templates are fine starting points for most things. I use the empty project templ... read more 07/24/2006 (11:20 pm)
Setting up a puzzle board There are functions to move objects to points at a specified speed. The problem here is that a cell ... read more 07/24/2006 (8:05 pm)
Define a class in script I think it's a general programming concept objection. If you're approaching programming from an OO p... read more 07/24/2006 (7:59 pm)
Not calling level through button pressing screen Are you interested in zipping up your mod directory and sending it to me? Use my bvesco@gmail.com ad... read more 07/24/2006 (9:09 am)
Setting up a puzzle board If that is the case then you won't want to use tile maps for your game pieces. Use the tile map for ... read more 07/24/2006 (9:03 am)
Loading A New Level The first thing that sticks out to me is numerous %blah.class == "Player" which will never give the ... read more 07/24/2006 (8:47 am)
MIA: GUI Reference Doc There has been a lot of beefing up of GUI tutorials in the TGB mini tutorial section. [url]http:/... read more 07/23/2006 (2:07 pm)
Setting up a puzzle board Check out this on TDN: [url]http://tdn.garagegames.com/wiki/TGB/Reference:_t2dTileLayer#setStaticTil... read more 07/23/2006 (11:49 am)
Checkers demo question Actually, you can put extra code before the //--- OBJECT WRITE BEGIN --- as well. Your file can basi... read more 07/22/2006 (9:42 am)
Checkers demo question That is absolutely fine as long as your mainScreen.cs has been exec'd at the time mainScreen.gui nee... read more 07/21/2006 (8:54 am)
Not calling level through button pressing screen In your start game function, are your "isFile" calls returning true?... read more 07/21/2006 (1:23 am)
Not calling level through button pressing screen Try [code] function OnstartGameButton() { startGame("bowling/data/levels/abc.t2d"); } [/co... read more 07/20/2006 (12:36 am)
TDN Wiki seems to be having a problem No problem for me at this time.... read more 07/19/2006 (7:49 am)
Best method for storing groups of objects/data? GPGT says that SimSets work like a traditional queue. The order should be stable. The objects will b... read more 07/18/2006 (7:15 pm)
Random crash when loading level At first look, your menu_txt::onMouseDown is directly referencing the variable %text_play which is n... read more 07/18/2006 (1:08 am)
CAPICU - Multi Rule Dominoes Well underway. Looking righteous!... read more 07/17/2006 (10:19 pm)
How do you read how many folders are in a path and other tricks? Yes, there is a command. I don't remember it. You should be able to find it with the other file comm... read more 07/17/2006 (7:43 am)
MisBuild: New Buttons and Resolution It matches the ratio to the ratio of your monitor. You'll obviously have to look for the code that d... read more 07/16/2006 (4:44 pm)
The Deep Right on man, looking forward to it!... read more 07/16/2006 (12:09 pm)
Arrays of struct type Try almost exactly what you have written. [code] // build the level "struct" new ScriptObject(l... read more 07/16/2006 (12:07 pm)
MisBuild: New Buttons and Resolution When you run a built project for the first time, the engine auto-calculates the resolution to be the... read more 07/16/2006 (11:56 am)
How do you read how many folders are in a path and other tricks? I believe you have to refresh your file list before isFile will return false after a delete. I'd ima... read more 07/16/2006 (10:31 am)
MisBuild: New Buttons and Resolution Those extra buttons are for toggling the level editor. Just delete those buttons from your "mainScre... read more 07/15/2006 (4:20 pm)
Newbie need help on compiling.. YOU never have to compile any .cs files. The engine compiles them on the fly.... read more 07/12/2006 (8:13 pm)
T2dScene or t2dscene object Try using sceneWindow2D.getSceneGraph() for the scengraph or just sceneWindow2D if it's the scene yo... read more 07/12/2006 (8:11 pm)
Data Structures, Classes Classes, arrays (flat and multi-dimensional), sets, groups, and hierarchies are all available in Tor... read more 07/10/2006 (12:29 am)
Trouble with my link points being way off Ah, I've found the solution. Apparently link points are not hard coordinate offsets, but percentages... read more 07/09/2006 (1:24 pm)
Error with namespace linking Somewhere the wires are getting crossed. It appears you're trying to assign a class associated with ... read more 07/09/2006 (11:23 am)
How do you read how many folders are in a path and other tricks? No, I'm talking about the general programming concept of tokenizing strings. TorqueScript has decent... read more 07/09/2006 (11:05 am)
Error with namespace linking I've been getting around that problem by using config datablocks and setting the class and/or superc... read more 07/09/2006 (10:41 am)
TGB Debugging weirdness, can someone take a look at this? I'm using Torsion and having no problems stopping on breakpoints in external files. Try putting that... read more 07/09/2006 (10:39 am)