A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [help] diagonal lines

  1. #1
    Style Through Simplicity alillm's Avatar
    Join Date
    Mar 2004
    Location
    Wales
    Posts
    1,988

    [help] diagonal lines

    Hi, Im just testing out some things on flash, and i have come across a problem that i dont know how to fix.

    Ive made a character that can walk around a plain isometric tile in 8 directions, but now i want to stop him from walking off the tile, ive managed to do this, however, the man stops too early, because the line movie clips at the edge of the tile are diagonal, and the movie clip is a rectangle, so the man stops when he hits the rectangle, and not when he hits the edge of the tile.

    i dont know if you will understand what i mean, but i dont know how else to explain.

  2. #2
    Style Through Simplicity alillm's Avatar
    Join Date
    Mar 2004
    Location
    Wales
    Posts
    1,988
    so basicly i want to know how to fix this....so the character will stop at the edge of the tile

    If you dont understand what i mean, just say, and i will try to explain better.

  3. #3
    Junior Member
    Join Date
    May 2002
    Posts
    0
    The problem is that your using hitTest in the iso world, when you should be using an array. I suggest you try tonypa's tutorials, they're very well written.

    http://www.tonypa.pri.ee/tbw/index.html

    jtnw

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