Guy Lewis's Forum Posts
| Thread | Post | Date Posted |
|---|---|---|
| OnCollision not respecting the layer mask (only in behaviors) | @James I stand by my comment. You can create a callback and yes it will be called, but as you ... read more | 04/02/2008 (8:01 am) |
| OnCollision not respecting the layer mask (only in behaviors) | This would be correct. Behaviors are inherited from the simobject class. Simobject does not support ... read more | 04/01/2008 (10:38 pm) |
| Resetting gamma correction after quitting? | Which version of TGE are you using? I took a quick look at the 1.5.2 source and gamma is restored by... read more | 11/03/2007 (10:17 pm) |
| Resolved-Template" and "Self-destruct" behavior conflict | I played around with this a bit and it is a chicken and egg scenario. Here is what is happening.... read more | 10/25/2007 (7:17 pm) |
| GetEnvironmentVariable() help | Be aware, I believe GetEnvironmentVariableA is a windows specific call and won't work on OS X or Lin... read more | 08/06/2007 (10:47 am) |
| TGBGame.exe size after compile | The TGB executable is packed with the UPX packer [url=http://upx.sourceforge.net/]upx.sourceforge.ne... read more | 07/29/2007 (9:01 am) |
| Rotating: Facing Direction Point | If memory serves me the reason that I separated the x and y components is the mtan function in TGB 1... read more | 07/13/2007 (8:37 pm) |
| 1.5 beta 3 Mac crash | Vern, A couple of things. First, The log uses buffered writes, if you stream a large amount ... read more | 07/08/2007 (10:44 pm) |
| Accessing sceneWindow2D (camera) from a behavior | I would imagine that it is a bit jittery. I think the basic problem is using the behavior::onUpdate.... read more | 04/14/2007 (7:57 am) |
| Bizzare bug when executing script | Can you post the code that you are having problems with? Without seeing the code it would be next to... read more | 04/04/2007 (7:55 pm) |
| Suggested Behaviors | Another suggestion. When defining the addbehaviorfield it would be nice to be able to define up... read more | 04/04/2007 (10:29 am) |
| TGB 1.5 Beta 2 released | I just ran across another issue. Open an existing project (I used the behaviorplayground). Ma... read more | 04/02/2007 (8:18 pm) |
| Global Vars vs. Script objects | Ya, I didn't want to get into doing an indepth test. I used taskmgr because it showed that either me... read more | 03/28/2007 (9:19 pm) |
| Global Vars vs. Script objects | Ok, I couldn't resist running a couple of tests to see the impact of a script obj vs a global var... read more | 03/28/2007 (3:06 pm) |
| Global Vars vs. Script objects | I hear ya. Clean code is always easier to debug and more so, understand when you go back to it 6 mon... read more | 03/28/2007 (12:30 pm) |
| Global Vars vs. Script objects | Thanks for the feedback! Those were the basic conclusions I was coming to as well. I think I am ... read more | 03/28/2007 (11:23 am) |
| Implementing several scenewindows | More thoughts/comments. Scene windows are rendered in the order they were created. So the first w... read more | 03/26/2007 (1:23 pm) |
| Td2StaticSprite save issue | OK, This was driving me crazy and I had to know why. Digging through the save routine, here is w... read more | 03/25/2007 (5:16 pm) |
| Td2StaticSprite save issue | OK, This was driving me crazy and I had to know why. Digging through the save routine, here is w... read more | 03/25/2007 (5:11 pm) |
| Stoping an Animated Sprite | @James Hmmm ya, sorry about that. Digging into further and looking what I had done and the dif... read more | 03/24/2007 (5:37 pm) |
| Eval() not aware of *all* variables in scope | I tried it in windows version 1.13 and it worked fine for me as well. I just copied Eric's code into... read more | 03/23/2007 (9:17 pm) |
| Datablock Analogy | I am coming into this late and am already suffering from analogy overload but let me throw my two ce... read more | 03/23/2007 (8:57 am) |
| Crash when loading a level | The problem with the way you tried to do it in your example is that you are trying to reference the ... read more | 03/22/2007 (11:20 am) |
| Crash when loading a level | The problem with the way you tried to do it in your example is that you are trying to reference the ... read more | 03/22/2007 (11:12 am) |
| Directory Location of Torque | @Dave, that was what I assumed. I only have a windows platform to test on and I didn't feel like di... read more | 03/21/2007 (8:21 pm) |
| OnSlide function for GuiSliderCtrl | If you specify a callback function in the altcommand field it will get called anytime the value of t... read more | 03/21/2007 (8:11 pm) |
| Directory Location of Torque | Look in the documentation under console functions->file io. The function you are after is getworkin... read more | 03/21/2007 (4:54 pm) |
| How would I draw a simple line? (re: how to convert coordinates) | @Neo: I try to not assume I know what someone is trying to accomplish without having an indepth ... read more | 03/21/2007 (4:42 pm) |
| How would I draw a simple line? (re: how to convert coordinates) | If you are running TGB 1.13 you may want to take a look at the t2dShapeVector class. It supports d... read more | 03/21/2007 (8:01 am) |
| Child sprite | @Isaac: It look like you are trying to reference your parent with the mountParent dynamic field... read more | 03/19/2007 (2:00 pm) |
| Jump physics easy fix |
@Matt
Isn't that function part of the apathy:: class? |
03/19/2007 (9:19 am) |
| Fading (and Beyond) | Nice work Eric!... read more | 03/19/2007 (8:51 am) |
| Td2StaticSprite save issue | Ya, that was always my impression too. I started playing with saving to design a level editor for th... read more | 03/18/2007 (9:07 pm) |
| Fading (and Beyond) | Nice. I too have been playing around with fading. I based mine off the fade routines that used in th... read more | 03/18/2007 (3:39 pm) |
| Draging the Tilemap or World | With the code you show, your camera will still jump to the location. When you execute the complete... read more | 03/16/2007 (1:29 pm) |
| Stoping an Animated Sprite | Hmmm, now that I think more about it, you said you were trying to animate gears. I am assuming they ... read more | 03/13/2007 (11:09 pm) |
| Stoping an Animated Sprite | You got me thinking about how much control you have over animation. I started playing around with... read more | 03/13/2007 (10:50 pm) |
| Stoping an Animated Sprite | Not sure if this will work for you or not but I thought I would throw it out there anyway. You can't... read more | 03/13/2007 (5:03 pm) |
| Adding Buttons To A Level? | Your question is a little confusing as you refer to the gui, but then are talking about onlevelloade... read more | 03/12/2007 (12:10 pm) |
| How to Translate the game to other language? | Not sure if this article is specific to TGE owners or not so hopefully you will be able to get to it... read more | 03/12/2007 (11:40 am) |
| Functions for Drawing Primitives | @Ben: Funny you mention Battlezone, I have one in my house 8). Yes classic arcades are "another"... read more | 03/12/2007 (10:07 am) |
| Draging the Tilemap or World | Tom is correct in needing more info. The more detailed you can be in your question the more helpful ... read more | 03/09/2007 (2:19 pm) |
| First Time question about changing levels | Your schedule syntax is wrong. Looking in the TGB reference schedule parameters are this schedule... read more | 03/09/2007 (2:03 pm) |
| TGB scripting issues...Need help | It looks like you forgot to put the parens on your getposition calls. TGB is treating them as dymani... read more | 03/02/2007 (12:56 pm) |
| Rotating: Facing Direction Point | If your triangle is not mounted to another object we can use a little trig to find the rotation angl... read more | 03/02/2007 (10:02 am) |
| Camera Control Tutorials | I know I am a little late throwing my hat into the ring here. but as I thought this through there ar... read more | 02/15/2007 (6:39 am) |
| User created .pngs for imagemaps | The script engine doesn't have any calls to directly perform that sort of process. If you are a c++ ... read more | 02/14/2007 (2:40 pm) |
| About : FishGameTutorial | Your velocity update for the y axis in the boost check is commented out. [code] if(%this.boost) ... read more | 01/30/2007 (5:58 pm) |
| Breakout physics | You use the collision callback and re-apply your velocity when your object collides with anything if... read more | 01/27/2007 (8:39 am) |
| Directory Tree and File list | I would recommend taking a look at how the TGB level editor does it. games/tools/gui/savefiledlg.e... read more | 01/21/2007 (9:41 pm) |