Moving an MC with walls

Hi everyone,

I’ve searched for this in the forums and google, basically what I’m after is a method of moving a movieclip left, right, up and down whilst preventing it from moving outside of bounds, another movieclip with walls that could be drawn, so not stright.

The only solid way I’ve found so far is by use of grid thinking, hero is 10x10, walls are 10 by x, and movement is by 10, but I need a bit more flexibility (actionscript 2).

any help or pointers would be great :slight_smile:

thanks!