Ben R Vesco's Forum Posts
| Thread | Post | Date Posted |
|---|---|---|
| Just to Make Sure: No "extends" keyword in script? | Glad it's getting a little closer to being a good workflow for you!... read more | 09/25/2006 (6:57 pm) |
| Mounting Sprites to the Mouse Cursor? | It's also covered nicely in one of the mini tutorials where you can "pick up" GG logos and throw the... read more | 09/25/2006 (6:53 pm) |
| Dynamic fields - use only for static data | @Stephen What you say has proven to be true with empirical tests. I use ::onAdd all the time with... read more | 09/25/2006 (6:50 pm) |
| Memory Leak / Performance Slowdown? | @Stephen Just a note, ::onUpdateScene at 100fps is actually called every 10 milliseconds, not eve... read more | 09/25/2006 (6:16 pm) |
| Dynamic fields - use only for static data | ::onAdd are called when the game isn't running because of the way they work. I initially interpreted... read more | 09/25/2006 (8:59 am) |
| Just to Make Sure: No "extends" keyword in script? | @Eric I also feel it is much easier to position things using the LE. Here's what I would do to posi... read more | 09/25/2006 (8:50 am) |
| Dynamic fields - use only for static data | If you set the "canSaveDynamicFields" to "0" (which equates to false) then you will not have that pr... read more | 09/24/2006 (6:02 pm) |
| Just to Make Sure: No "extends" keyword in script? | @Eric You don't create a t2dTextObject by setting its class to t2dTextObject. You create a t2dTex... read more | 09/24/2006 (5:57 pm) |
| PointInControl | The doc from the dump says "returns true if the point is in the control, point is in parent coords"... read more | 09/23/2006 (3:46 pm) |
| Inheritance / polymorphism? | In spite of the fact they used the words "class" and "superclass" in TS there are no such thing as c... read more | 09/23/2006 (3:41 pm) |
| Add Data to Time Graphs | Check out the feature tutorial on particle effects in your TGB docs directory. That covers the time/... read more | 09/23/2006 (3:32 pm) |
| TGB Suspend | That will probably involve modifications to the different platform code in the engine. I think I've ... read more | 09/22/2006 (10:18 pm) |
| Just to Make Sure: No "extends" keyword in script? | T2dTextObject is already a class in C++. I haven't traced the hierarchy of it but for the sake of ex... read more | 09/22/2006 (8:28 am) |
| Searching the forums and TDN | Those are very good tips for TDN, but keep in mind for searching only forums you can always just sel... read more | 09/21/2006 (11:39 pm) |
| Just to Make Sure: No "extends" keyword in script? | Additionally, don't get confused by the way things are named. Even though one of the fields is calle... read more | 09/21/2006 (11:37 pm) |
| Just to Make Sure: No "extends" keyword in script? | You never declare your classes in TS like you do in full featured OO languages. For instance, in lan... read more | 09/21/2006 (11:31 pm) |
| Help with Code | And if that doesn't work, try forcing the comparison of id [code] if (b1.getMountedParent().getI... read more | 09/21/2006 (2:48 pm) |
| Ball Physics | To start, if you turn off gravitic forces, you suddenly have a top down view of motion. Then you can... read more | 09/20/2006 (10:40 pm) |
| Name of Scenegraph ? | Also, sceneWindow2d.getSceneGraph() will get you your current scenegraph unless you renamed the scen... read more | 09/20/2006 (2:52 pm) |
| Pausing the game. | Scenewindow2d.getSceneGraph() will work unless you've renamed your scenewindow control from default.... read more | 09/20/2006 (2:51 pm) |
| Ball Physics | There's a mini tutorial on TDN where you throw some balls around with the mouse. May have exactly wh... read more | 09/20/2006 (8:51 am) |
| Gui controls with SetScreenMode() | Try out the horizontal and vertical sizing attributes of the controls.... read more | 09/20/2006 (8:50 am) |
| Moving or suppressing Level Play Tab | Toggle into the gui editor and back again. The tab will then be gone.... read more | 09/20/2006 (8:49 am) |
| Problems getting the mouse tutorials to work | Sweet, glad you got it working.... read more | 09/20/2006 (12:49 am) |
| Need Help Understanding Variables, Functions, and Methods | That's not really a variable at all. It is a field of an object. It lasts until the object itself is... read more | 09/19/2006 (4:51 pm) |
| Just to Make Sure: No "extends" keyword in script? | For instance: [code] new t2dStaticSprite() { class = "ClassA"; superclass = "ClassB";... read more | 09/19/2006 (4:45 pm) |
| Just to Make Sure: No "extends" keyword in script? | Yes and no. Like any normal OO language, there is no way to extend an object. Once you have an objec... read more | 09/19/2006 (8:37 am) |
| Inheritance | Just remember, when you create an object like your 2nd code sample, you are essentially creating a f... read more | 09/18/2006 (9:14 am) |
| Using a Simset as a Queue? | Yes, I think that looks very reasonable with the exception that I don't think SimSet supports a clas... read more | 09/18/2006 (6:49 am) |
| SceneWindow2D.loadLevel() | Do you have the "pro" license? If so you can see the source of the loadLevel function in the scripts... read more | 09/18/2006 (6:44 am) |
| Rendering In-Game Text | There's also [url=http://tdn.garagegames.com/wiki/TGB/Other_Resources/t2dTextObject]this one[/url] t... read more | 09/18/2006 (6:43 am) |
| Using a Simset as a Queue? | A SimSet already works as a FIFO queue with no further work necessary. It wouldn't take too much wor... read more | 09/17/2006 (11:31 pm) |
| Problems getting the mouse tutorials to work | That code will only work if your t2dSceneGraph were named "t2dSceneGraph" by you. It's not a good id... read more | 09/16/2006 (11:51 pm) |
| Memory Hog | I am using some background images that are 2000 pixels square so that's not bad, unless you aren't f... read more | 09/16/2006 (9:35 pm) |
| Memory Hog | Optimization is very project specific. You have to first determine which part of your project is eat... read more | 09/16/2006 (1:16 pm) |
| Class declaration | Yes, you can have the behavoir of inheritance. See my answer to the other thread.... read more | 09/15/2006 (4:01 pm) |
| Sprite problems | You have scenegraph = t2dSceneGraph which will only work if your t2dSceneGraph is named "t2dSceneGra... read more | 09/15/2006 (4:00 pm) |
| Inheritance | You have up to four levels of inheritance in script: [code] new t2dStaticSprite(mySprite) { ... read more | 09/15/2006 (3:57 pm) |
| Changing the color of the main screen | One way would be to push a semi-transparent image over the whole scene as part of the gui.... read more | 09/15/2006 (3:45 pm) |
| Do I have to restart T2D level builder everytime I edit a script | They've also got it aliased to just [code] cls [/code] for ease of use.... read more | 09/14/2006 (10:39 pm) |
| Text Input | You're welcome, man!... read more | 09/13/2006 (9:47 pm) |
| DataBlocks | Did you get it working then?... read more | 09/13/2006 (5:18 pm) |
| Parse error | Try throwing %this in there, a la: [code] function t2dSceneGraph::onUpdateScene(%this) [/code] ... read more | 09/13/2006 (5:18 pm) |
| DataBlocks | And be sure all of that is being done AFTER the level is loaded.... read more | 09/13/2006 (2:41 pm) |
| Parse error | Which line is 131?... read more | 09/13/2006 (2:39 pm) |
| DataBlocks | Check out the mini-tutorial on TDN covering mouse movement for objects. It has a lot of good sample ... read more | 09/13/2006 (10:47 am) |
| DataBlocks | You're welcome Danny!... read more | 09/13/2006 (9:12 am) |
| OnMouseDragged problem | I initially did the exact same thing, even after reading the tutorial!... read more | 09/13/2006 (6:48 am) |
| DataBlocks | [code] %card = new t2dStaticSprite() { config = "MyDatablock"; }; [/code]... read more | 09/13/2006 (6:45 am) |