|
-
Simple Hittest problem
I've been trying to write a hittest that will work for rounded walls on my RPG D: But i've been epic phailing. Heres my code:
onClipEvent(load){speed=10;}onClipEvent(enterFrame ){if(Key.isDown(Key.UP)){this._y-=speed;this.gotoAndStop(5);}if(Key.isDown(Key.DOWN )){this._y+=speed;this.gotoAndStop(6);}if(Key.isDo wn(Key.RIGHT)){this._x+=speed;this.gotoAndStop(7); }if(Key.isDown(Key.LEFT)){this._x-=speed;this.gotoAndStop(8);}
If someone could help me out I would love them forever <3
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|