A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Trouble with line collision

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Location
    Lost in the Alps
    Posts
    25

    Trouble with line collision

    I have code for a line based platformer. The code I wrote works fine until you get to the intersection between two lines, where you fall through. (The lines are all connected). In many tutorials I have seen, they also have this problem. How can I keep the player from moving through the cracks?

  2. #2
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    make them overlap by 1 pixel?
    who is this? a word of friendly advice: FFS stop using AS2

  3. #3
    Junior Member
    Join Date
    Jan 2008
    Location
    Lost in the Alps
    Posts
    25
    I tried that. It still goes through.

  4. #4
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    by 2 pixels then?.. no, really, noone can't debug code without even seing it. and if you do paste your code, I will find another excuse, such as "this is math & phi not help me find a bug in my code forum".
    who is this? a word of friendly advice: FFS stop using AS2

  5. #5
    Junior Member
    Join Date
    Jan 2008
    Location
    Lost in the Alps
    Posts
    25
    never mind, I figured it out.

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