ThankZ alot Derek i didnt see the minus. hehe..
_root.walls._x-=x;
_root.walls._y-=y;
thanks alot man that helped alot.
:D
Printable View
ThankZ alot Derek i didnt see the minus. hehe..
_root.walls._x-=x;
_root.walls._y-=y;
thanks alot man that helped alot.
:D
Here's a simple program that moves a character in 8 directions and prevents him from walking through walls.
Just add more walls to create things like mazes, the actual coding that prevents thehero from walking through walls is assigned to the wall MC already on the stage so just copy and paste either the existing walls or the coding.
ThankZ:)