Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 3 of 3
  1. #1

    Default Collision Crisis

    Listen I need help with hthis collsion code. What's wrong?

    Code:
     onClipEvent (load) {
    moveSpeed = 3;
    }
    onClipEvent (enterFrame) {
    if (Key.isDown(Key.RIGHT)) {
    this._x += moveSpeed;
    } else if (Key.isDown(Key.UP)) {
    this._y -= moveSpeed;
    } else if (Key.isDown(Key.DOWN)) {
    this._y += moveSpeed;
    } else if (Key.isDown(Key.LEFT)) {
    this._x -= moveSpeed;
    }
    }
    onClipEvent (enterFrame) {
    if (this.hitTest(this._parent.left)) {
    _x = _x+10;
    }
    }
    onClipEvent (enterFrame) {
    if (this.hitTest(this._parent.up)) {
    _y = _y+10;
    }
    }
    onClipEvent (enterFrame) {
    if (this.hitTest(this._parent.down)) {
    _y = _y-10;
    }
    }
    onClipEvent (enterFrame) {
    if (this.hitTest(this._parent.right)) {
    _x = _x-10;
    }
    }
    There are no errors, it just wont collide with the walls.

    I'll send the flash over AIM as well. My sn is Gamerkd14. Feel free to IM me. I need help.

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2

    Default Forget it!

    OK, yea. Nevermind. These forums are useless. I got my question answered 10 times faster in a place that is much better than this. I've had it posted there for about 6 days and I got around 18 responses. Screw this place.


  4. #3
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Patience is a virtue, especially in hunting code bugs. Sorry you feel slighted, but offering free code advice is not my primary existance on the planet. I help when I can and those that are generally polite definitly receive preference. Something that you are apparently lacking. You can find rudeness at many other forums. You will most likely fit in better in that evironment. Good luck.
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Collision Detection?? PLS HELP!!
    By Flash_Gamer in forum Flash Scripting
    Replies: 1
    Last Post: 11-28-2006, 10:07 PM
  2. multiple collision problem
    By malmatate in forum Games
    Replies: 2
    Last Post: 12-11-2005, 05:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial