A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: [help] platforms above platforms

Threaded View

  1. #1
    Senior Member
    Join Date
    Jan 2003
    Location
    Austin, TX
    Posts
    297

    [help] platforms above platforms

    alright, so I'm using the "coordinate rotation" algorithm posted here a while ago by bit101, I added some friction, etc, and got it working pretty well.

    unfortunately (and this was an inherent problem that I knew I had to face eventually from the beginning) the way I choose which platform to test a collision against is to see at the very beginning which platform the hero is on top of, and from then on, if he moves left of it, keep checking platforms one to the left until you find the right one, and same with the right. all the platforms are in an array sorted by their _x attribute.

    obviously, I run into a problem once I add a platform above another.

    does anyone know how to get around this problem, or should I abandon my platform-array choosing algorithm altogether? if so, what's a better way to determine which platform to check collision against, so I don't have to check collision against every platform on every frame?
    Attached Files Attached Files

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