Hi all,
I am trying to make a AI for the enemy objects using a node. The nodes is placed at the intersection within a maze. Within each node a boolean variable is set for each of the available directions the intersection has, true being the direction open. When the enemy object hits the node the enemy then checks through the 4 boolean varibles, (East, North, West, South). puts the true ones into a ds_list then a new direction is randomly chosen from the ds_list_size.
My problem is that once the enemy hits the node and sorts out a new direction is sorted and the ds_list is destroyed the enemy is still inside the collision detection of the node so the code runs again. How can I stop this from happening....
Cheers for any help
I am trying to make a AI for the enemy objects using a node. The nodes is placed at the intersection within a maze. Within each node a boolean variable is set for each of the available directions the intersection has, true being the direction open. When the enemy object hits the node the enemy then checks through the 4 boolean varibles, (East, North, West, South). puts the true ones into a ds_list then a new direction is randomly chosen from the ds_list_size.
My problem is that once the enemy hits the node and sorts out a new direction is sorted and the ds_list is destroyed the enemy is still inside the collision detection of the node so the code runs again. How can I stop this from happening....
Cheers for any help