Simple Enemy Random Movement

Sunday, December 14th, 2008 | Enemy AI, Game Examples AS2

Here is a simple AS2 enemy creation/ai script that allows you to create enemies that move about randomly inside a container movieclip. You can set custom movement boundaries/borders. When an enemy hits the border, it will “bounce off” and move in the opposite direction.

Random Movement Example

Download Fla Sample

Download Fla Sample


Tags: , , , , , , , , , , , , , , , , ,

No comments yet.

Leave a comment

You must be logged in to post a comment.