Free ActionScript

Flash AS2 & AS3 Tutorials, Game Code, Effects, Source Files & Sample Downloads

Simple Enemy Random Movement

No Comments »

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

Leave a Reply

You must be logged in to post a comment.