A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 23 of 23

Thread: _root.ME.hitTest(PROBLEM!)

  1. #21
    Senior Member Djali's Avatar
    Join Date
    Sep 2004
    Location
    Sweden, stockholm
    Posts
    124
    ThankZ alot Derek i didnt see the minus. hehe..


    _root.walls._x-=x;
    _root.walls._y-=y;

    thanks alot man that helped alot.
    Area restricted-
    Tresspassers will be shot.
    Survivors will be shot again...


    http://www.geocities.com/legg3r

  2. #22
    x2i GingaNinja's Avatar
    Join Date
    Feb 2004
    Location
    England
    Posts
    217

    Movement W/ Boundarys

    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.

  3. #23
    Senior Member Djali's Avatar
    Join Date
    Sep 2004
    Location
    Sweden, stockholm
    Posts
    124
    ThankZ
    Area restricted-
    Tresspassers will be shot.
    Survivors will be shot again...


    http://www.geocities.com/legg3r

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center