Game Development Community

TGB 1.7.3 aStar questions and techniques

by Stephen Zepp · in Torque Game Builder · 05/14/2008 (5:09 pm) · 1 replies

Please feel free to use this thread for questions related to TGB 1.7.3's new aStar pathfinding functionality.

Also note that there is a discussion thread regarding future development for TGB's aStar implementation going on, and we're looking for more people to present their views!

#1
03/21/2009 (1:37 am)
I'm using TGB 1.7.4 at the moment but I'm having a problem with the aStar Tutorial when I get to the section where you test to see if the butterfly is moving towards the earth. Every 15 secs(as programmed) I get an error stating:

game/gameScripts/enemy.cs (36): Unable to find object: 'EnemyTemplate' attempting to call function 'cloneWithBehaviors'
game/gameScripts/enemy.cs (38): Unable to find object: '' attempting to call function 'findSpawn'
game/gameScripts/enemy.cs (39): Unable to find object: '' attempting to call function 'setPosition'
game/gameScripts/enemy.cs (40): Unable to find object: '' attempting to call function 'findDestination'
game/gameScripts/enemy.cs (41): Unable to find object: '' attempting to call function 'startPath'

I've redone the steps over and over countless times but I can't succeed.

The butterfly sprite has been added, It has its appropriate name and class titles, the collision tab is unchecked as directed, and the dynamic field has been created as specified. The project has been saved but when the game is run from either TGB or Torsion all I see is the paint grid. The World image doesn't load either but the painting feature works just fine.

Any suggestions would help me greatly.