Player colliding with tiles on map?
Posted: Thu Feb 27, 2014 8:37 am
I am following one of the tile map scrolling tutorials and I've got it working but how do I make objects collide with the tiles? How can I choose which tiles can and cannot be collided with? For example, if I want the player to bounce off of tile[3] but to speed up when colliding with tile[2] and to just walk while colliding with tile[1], how would I do that? (or any/either one of those)?
I know how to Draw a ball, give it restitution and make it bounce using love.physics. But it doesn't "just work" with the tiles, so how would I do that?
I've tried learning from the code from external platformer tutorials online but haven't been able to incorporate it into my own game.
I know how to Draw a ball, give it restitution and make it bounce using love.physics. But it doesn't "just work" with the tiles, so how would I do that?
I've tried learning from the code from external platformer tutorials online but haven't been able to incorporate it into my own game.