Game Development Community

several problems about behavior or trigger

by maplegreen · in Torque Game Builder · 03/12/2011 (8:33 pm) · 2 replies

Tower defense game,I add a tower in editor,and assign the beheaver,I want to the enemy enter the erea,the tower begin to attack,and leava the area,the tower stop to attack.
how can i definition the area? tower's collision is almost as big as a its own.or place some trigger?

#1
03/12/2011 (10:41 pm)
Use triggers, you can add a behavior to the trigger and assign the tower to the trigger so when an enemy enters the trigger that tower could start firing.
#2
03/13/2011 (12:40 am)
how can i assign the tower to the trigger?I could not find any tutorial about trigger.I am newer to tgb?could any one to provide some complex example about beheavor?I have several years work experience on pc game.I read some tutorial,I often see some simple code in .cs file,but I dont know why write like this.