Ben R Vesco's Forum Posts
| Thread | Post | Date Posted |
|---|---|---|
| Text Input | GuiTextEditCtrl... read more | 09/13/2006 (6:44 am) |
| TileMaps - getting/setting a Tile at a location? | You will want something like [url=http://tdn.garagegames.com/wiki/TGB/Reference:_t2dTileLayer#setSta... read more | 09/11/2006 (8:56 pm) |
| Documentation: getTileType() | It's a wiki man, feel free to update anything you find that is not accurate or can be clarified!... read more | 09/11/2006 (8:52 pm) |
| CastCollision Method | Hopefully simple explanation: If this object were to keep moving along its current heading for th... read more | 09/11/2006 (8:02 pm) |
| OnMouseDragged problem | You can avoid that problem by using the onMouseDragged callback on the scenewindow2d instead of on t... read more | 09/11/2006 (4:41 pm) |
| Another simple functions question (passing %this) | The previous solutions are the most correct. Just for completeness you can also fake out the engine ... read more | 09/11/2006 (6:54 am) |
| T2dAngleBetween() question | A very important way to answer questions like this is to open TGB and type things like this into the... read more | 09/11/2006 (6:52 am) |
| Is the TGB Installer Necessary? | You can trick that too, just copy the directory and let it uninstall. Alternatively you can look up ... read more | 09/11/2006 (6:44 am) |
| Classes | Won't you still need to explicitly pass your %this into the function since your invocation of the fu... read more | 09/10/2006 (1:15 am) |
| Aim and fire with mouse problem | Minor note: 90 is actually straight down ;)... read more | 09/09/2006 (2:07 pm) |
| TGB is off center in fullscreen mode | You check it on your monitor. There should be a bunch of buttons at the bottom of it to adjust all s... read more | 09/09/2006 (2:05 pm) |
| Classes | @Scott's example: [code] ... function chld::func ( %this ) { parent::func(%this); ec... read more | 09/09/2006 (9:54 am) |
| TGB is off center in fullscreen mode | Your monitor should have a profile for each resolution you run it in. Try adjusting the monitor's co... read more | 09/09/2006 (9:49 am) |
| Classes | Just put the superclass declaration in the datblock. Then all objects using that config datablock wi... read more | 09/08/2006 (3:12 pm) |
| Unable to find function | Glad you got it resolved!... read more | 09/08/2006 (9:26 am) |
| OnMouseDragged problem | Check out the code [url=http://tdn.garagegames.com/wiki/TGB/MiniTutorials/ObjectMouseEvents]in this ... read more | 09/08/2006 (9:24 am) |
| Animation using a static sprites (fixed) | If you decide to go the custom route, I'd recommend using timers and implementing a timer manger tha... read more | 09/08/2006 (12:25 am) |
| Canvas.pushDialog() Overwriting Player Input | Your canvas is most likely intercepting the mouse input when you push a new layer on top of the canv... read more | 09/08/2006 (12:23 am) |
| Running The Game Twice In Order To Find The Player?!? | Often what can happen is your datablocks or other initializing code has not yet been exec'd when the... read more | 09/08/2006 (12:21 am) |
| Animation using a static sprites (fixed) | You could use schedules or timers to delay the calls to the next frame.... read more | 09/07/2006 (8:11 pm) |
| Unable to find function | Did you modify or remove anything from the tools module of TGB? That's where all the message boxes t... read more | 09/07/2006 (9:46 am) |
| Classes | @Danny Your situation seems more tailored to datablocks than superclasses. If you want objects to... read more | 09/07/2006 (9:43 am) |
| Confusion about Datablocks and Objects | @Rogers I realize this is an old thread, but be sure to load your level BEFORE trying to add spri... read more | 09/07/2006 (9:39 am) |
| Dynamic arrays? | @GC You're not using any datablock in that code. To use a datablock you'd have to add a "config" ... read more | 09/07/2006 (9:35 am) |
| Load image map | Create a datablock in script for it. Here's an example: [code] new t2dImageMapDatablock(Lento... read more | 09/06/2006 (9:36 pm) |
| Dynamic Field Level Builder bug or carbon unit failure? | I've noticed that too and it is a minor annoyance. TS is not case sensitive so charSpeed, CharSpeed,... read more | 09/05/2006 (8:41 pm) |
| Calling aglobal function from another global function | Yes, I am suspecting that $MyScene is never getting initialized the way you think it is. Read my pre... read more | 09/05/2006 (9:31 am) |
| Calling aglobal function from another global function | @Nir Are you saying that your level scenegraph is called 'table' ? If that is the case, then y... read more | 09/04/2006 (9:16 pm) |
| Class declaration | Classes do not exist in TS the way they do in other languages. You don't ever declare them in a simi... read more | 09/04/2006 (10:17 am) |
| Calling aglobal function from another global function | Your onLevelLoaded should look like: [code] function table::onLevelLoaded(%this, %scenegraph) {... read more | 09/04/2006 (10:05 am) |
| A question about making particle | Did you also set the arc base variance to zero?... read more | 09/04/2006 (10:02 am) |
| MiniPlatformerTutorial Missing Object Problem | Glad you got it working!... read more | 09/02/2006 (8:47 am) |
| Using t2dVectors | [code] %vector = "5 8"; %x = firstWord(%vector); %y = getWord(%vector, 1); %x++; %newVector =... read more | 09/02/2006 (8:45 am) |
| Sticky collision... bug? | I am using CLAMP in getting the bug. When I switch to BOUNCE it stops happening.... read more | 09/01/2006 (2:42 pm) |
| Calling a function in other class without creating an object fro | You can call any script function from anywhere in script at any time. Just be sure to use the fully ... read more | 09/01/2006 (2:40 pm) |
| Sticky collision... bug? | I am now getting this problem of an object sticking into another. Checking the code, Tom's fix is al... read more | 08/31/2006 (11:26 pm) |
| GetCanvasPoint? | It isn't a float. At least not when I use it. Don't trust the docs in this case, I think they're wro... read more | 08/30/2006 (11:25 am) |
| How to Constrain Aspect Ratio on WideScreen? | Yeah! Post if you run into any implementation problems.... read more | 08/30/2006 (11:12 am) |
| Any real tangible benefits to Gui system | Additionally, there is a lot of built in functionality for all sorts of things with gui objects. Fun... read more | 08/30/2006 (7:31 am) |
| How to Constrain Aspect Ratio on WideScreen? | I run a check when my game starts. I check the aspect ratio of the display resolution and if it is n... read more | 08/29/2006 (6:47 pm) |
| GetCanvasPoint? | I'm guessing the docs may be wrong. I don't have the engine here to verify, but try calling it and s... read more | 08/29/2006 (4:51 pm) |
| How to Constrain Aspect Ratio on WideScreen? | You should be able to take your play gui where you have your scene window and use script calculation... read more | 08/29/2006 (4:46 pm) |
| Creating a GUI dialog in the Fly? | Yes, if you look at the guis that are made by the editor, you can just past that type of script into... read more | 08/29/2006 (8:32 am) |
| What is .ed.cs?? | There is no difference.... read more | 08/29/2006 (8:31 am) |
| TGB Pro 111 no longer starting | Are the console logs of those other games cutting off at the same place?... read more | 08/28/2006 (8:16 am) |
| TGB Pro 111 no longer starting | Console.log in your TGB directory is updated every time the engine starts.... read more | 08/27/2006 (9:24 am) |
| Creating an object via script | One problem I see in your code is that you're trying to assign a scenewindow to a scenegraph. Try ... read more | 08/26/2006 (10:29 pm) |
| Differences in world coords and canvas coords | Remember though, as soon as you change screen resolution all bets are off. [url=http://tdn.garage... read more | 08/26/2006 (12:35 am) |
| Setting the onPositionTarget callback for Sprites | If you had done something like: [code] ***** WRONG ***** %sprite = new t2dStaticSprite(specialC... read more | 08/26/2006 (12:31 am) |