Simple AI charactor, starting points?
by Kevin Reay · in Torque Game Engine · 03/11/2004 (6:40 pm) · 3 replies
I want to make a simple single player game to teach myself more about Torque. My questions is; how would I go about making a simple AI-controlled enemy character? I have the math/logic/programming skills to implement the AI and such, I just want to know if there is any object code in place for simple AI characters? I've looked in the AIPlayer class, but that seems to represent a player in the game (eg. a multiplayer bot) Any pointers/ideas are welcome.
If this question has been asked before, please tell me, although I couldn't find anything searching.
Thanks!
Kevin
If this question has been asked before, please tell me, although I couldn't find anything searching.
Thanks!
Kevin
About the author
#2
block some are stupid some not :)
Some have 8 legs and some 4 but i dont have any cow but
it should work with the player block to.
And i use the default ai with some modification only.
03/12/2004 (4:34 am)
All my creatures i have in my game comes from the playerblock some are stupid some not :)
Some have 8 legs and some 4 but i dont have any cow but
it should work with the player block to.
And i use the default ai with some modification only.
#3
Try to look at the think() function in the AIManager block and there you can add stuff like "scanForClosestPlayer()", "searchAndDestroy()" and similar
03/12/2004 (6:45 am)
I took the AIPlayer script and modified it a little to be a shark swimming in the water instead. Works perfectly running on the player datablockTry to look at the think() function in the AIManager block and there you can add stuff like "scanForClosestPlayer()", "searchAndDestroy()" and similar
Torque Owner Stefan Lundmark
If you want to make, say, a cow running around.. try and make a new player class and assign the AI code to it.
also, you might find this interesting.
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2730