Game Development Community

Pathing w/ Collisions

by Owen Snyder · in Torque Game Builder · 02/16/2009 (3:43 pm) · 3 replies

I am trying to set up custom paths so I can create a way of diverting an enemy from a straight path across the screen. The goal is to have the player create/place objects that block the path of an enemy that is crossing the screen horizontally. The objects would be placed to attempt to slow the enemy down by diverting it with immovable objects. I am having trouble determining the best way to do this, if anyone has any experience with this sort of thing, or has any tips, Please let me know, it would be much appreciated.
Thanks-ODSnyder

#1
02/17/2009 (6:10 am)
One thought would be to use code from the A* butterfly demo. Take a look at it, it may be close to what you are wanting to do. It allows the player to dynamically place (paint) objects on the screen and the butterflies constantly update their path information to find a route around those objects..
#2
02/17/2009 (11:17 am)
Thanks for the tip. Do you have a link for the butterfly demo, i am having trouble finding it.
#3
02/18/2009 (1:19 pm)
It should be under
"...\GarageGames\TorqueGameBuilder-1.7.4\games\AStarDemo"

I may have misled you by calling it the "Butterfly" demo.
It just uses butterflies in it.