Tuesday 12 March 2013

Enemy AI

Today I decided to use the Stencyl Forge behaviour "Random Walking A.I" to give the illusion that they are walking around of their own free will. This looked good in implementation and I specified the speed and direction that the enemies would walk in. This also led to an unexpected and amusing result if an enemy actor is placed in a precarious position with the scene (i.e. on a single floating block) in combination with the behaviour "enemy shoots projectiles" as the enemy will attempt to shoot the player actor and in most cases falls off and lands in an amusing position.

No comments:

Post a Comment