-
Style Through Simplicity
[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.
-
Style Through Simplicity
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.
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|