Guide for Enemy A.I?!
mmmodel
Member Posts: 46
Hello guys, somebody know where i can found some guides for enemy a.i?!
I tried to found something about but without success.
I know the basics like movement 'go' and 'back' and the follow rule(follow the player) but i really need to found how i make the point of collision to decrease the health of the player (like some punch in the face of the player or sword attack )
i have some idea how to start but i need some tips or some nice guide to study.
Sorry about the question but i really don't no what to do
Thanks )
I tried to found something about but without success.
I know the basics like movement 'go' and 'back' and the follow rule(follow the player) but i really need to found how i make the point of collision to decrease the health of the player (like some punch in the face of the player or sword attack )
i have some idea how to start but i need some tips or some nice guide to study.
Sorry about the question but i really don't no what to do
Thanks )
Comments
What exactly are you wanting to have your enemy do?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
so, i want when the enemy punch ( he has the animation sprite) the player health will decrease, i did the basic collision for one monster but i have the boss in the end of the scene and he has this attack but i need that he decrease the health of the player when the punch collides in the player.
Thanks for the answer
sorry for ask another thing
8-}
Dan
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
http://www.indiedb.com/games/tinykeep/news/tinykeeps-ai-system-part-2-of-5
These videos are great to bring ideas on the backend of how AI is done. You could take these ideas and implement them into GS. Obviously it's not a direct how-to, more to just get the creative juices flowing.
that says att self.distance < some number..
move to
position x, position y
and worked great, i think hahahaha
but i still don't know what to do when the enemy touches the player and he is stopping.
:-/
Try putting the 'move to' in a timer and set it for .001. That way it will keep following every after it reaches you.