- Home /
How do you change the collisions of all of one sort of tile on a tilemap. Also, how do you change the collision box on tiles in your tilemap
I'm following along on a fairly basic 2d rpg tutorial, and the tiles it included had a lot of trees that I thought would look cool on the map. I made a tilemap, drew in the grass and trees and whatever, but the trees' collision boxes include the entire square of the tree, which means that 1) a player can't go behind the tree, only above it; and 2) If they could go in that space, the player's sprite would be rendered on top of the tree instead of behind it, which would look a little weird. Can anyone either explain how to edit collisions and keep the sprite looking normal, or else point me towards a helpful tutorial they know of that explains this? Thank you so much, I really appreciate it!
If any of it was unclear I apologize, I'm happy to clarify!,I'm following along on a fairly basic 2d rpg tutorial, and the tiles it included had a lot of trees that I thought would look cool on the map. I made a tilemap, drew in the grass and trees and whatever, but the trees' collision boxes include the entire square of the tree, which means that 1) a player can't go behind the tree, only above it; and 2) If they could go in that space, the player's sprite would be rendered on top of the tree instead of behind it, which would look a little weird. Can anyone either explain how to edit collisions and keep the sprite looking normal, or else point me towards a helpful tutorial they know of that explains this? Thank you so much, I really appreciate it!