A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Help with Tile Based Collisions

Threaded View

  1. #5
    Senior Member x-death's Avatar
    Join Date
    Aug 2009
    Posts
    175
    so perhaps this would be the best way to do it:
    - dynamically find how many tiles the sprite could be touching at any one given time. (if its smaller then the tile size it will always be 4)

    - find the players coordinates and divide by tilesize. to find the current tile the player is on. and then check all the tiles surrounding it for collissions.

    i guess saying is easier then doing. but thanks for the help so far ImprisonedPride you've been a great help.
    Last edited by x-death; 06-24-2012 at 10:29 PM.

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