Archived

This topic is now archived and is closed to further replies.

tile collision

This topic is 5311 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

It''s depends how you move your character, how your character is presented (a circle, a rect)...
how you move your character? 1 pixel at time or one tile at time?

Share this post


Link to post
Share on other sites
Each tile should have a "Walkable" property. If the character is on tile 2,3 (x,y) and the player is trying to move him to the right (3,3) then test that tile for walkability. If it''s walkable move the character, otherwise don''t.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
how would this be done if your moving one pixel at a time?

Share this post


Link to post
Share on other sites