View Single Post
  #2  
Old 03-27-2012, 12:43 AM
Smokeynz Smokeynz is offline
Approved Member
 
Join Date: Apr 2011
Posts: 106
Default

I don't think you can set the ticktimer with the 18 == 17 followed by the ontrigger as the ontrigger is an internal event based reaction, polling with a timer you will miss the event.

you are relying on a time based system to look for change, where really you may want a event based system or both.

I would excecute a separate private void to test for your true and false conditons with the timer. Then have the ontrigger as standard setup waiting for the events to set up the true and false condition, destroyed etc what ever the trigger type. You could also execute the private void test upon true false setting at the ontrigger.
Actually note in the other thread about point2D where I setup true and false test in the ontrigger, but call a private void which in this case can be called by 3 event types. Timer, ontrigger and onplaceenter

I would also test the triggers themselves separately, each sets an individual true or false, then test the those true and falses, rather than try and group the triggers .
Also place a test message (that you text out later) in each trigger and stage, so you know where your code is getting up too.
Reply With Quote