Game Development Community

Dynamic Triggers

by Matt Ahrens · in Torque X 2D · 03/30/2010 (11:57 pm) · 6 replies

I am trying to create a trigger via code, but i can't get it to work, so i was wondering if someone could post the steps of very thing i would need to create the trigger. I am not using the editor becuase it doesn't like my computer, plus there are somethings i would prefer to load in a different way.
i think i have done this before, but i don't rember what i did.

#1
03/31/2010 (12:18 am)
the way i made a trigger was to create a blank object and attach a component with the trigger delegate in it. Are you trying to avoid using components without the editor?
#2
03/31/2010 (9:13 am)
yes i am doing everything in code. The editor crashes parrells when i open it.
#3
03/31/2010 (7:24 pm)
never mind i got it working.
#4
04/01/2010 (7:12 am)
@Matt: when does the editor crash? maybe post the console.log file that it generates so we can have a look. I've had a similar 'editor crashes on loading', I hacked the .dso files to make it load without crashing.
#5
04/01/2010 (9:51 am)
well the editor doesn't really crash, as much as it causes parrells to crash. Actuly it takes over parrells, and switches it to windows mode, and it won't load any projects and then i can't close it without shutting down parrells. I am using a macbook, and runing windows through parrells.
#6
04/01/2010 (10:03 am)
Ah right - I was going to say: wtf is parrells? :)
I prob can't help you with that one then.