Dagobah Posted June 28, 2020 Share Posted June 28, 2020 i have an animal sprite that is close to two tiles of width but the collision is only one tile and is in a different position of the sprite so i was wondering if is anyway way to edit the collision of the entities.   Thank you  Link to comment Share on other sites More sharing options...
0 Guest Posted June 28, 2020 Share Posted June 28, 2020 You could make it so the player sprite appears over the NPC's, so that it appears in front. You could also change the tile sizes so that a tile is actually double the height it usually is. Link to comment Share on other sites More sharing options...
0 Dagobah Posted June 29, 2020 Author Share Posted June 29, 2020 thank you for your answer but i dont have a problem with the sprite layers that's fine just the collision is under the sprite and changing the tiles size would make all the others collisions bigger which i dont need because they look fine  i left a video to be more explicative  Embedded Video Link  Link to comment Share on other sites More sharing options...
0 gooby Posted June 29, 2020 Share Posted June 29, 2020 i think your best and easiest bet is to draw them lower, which requires changing the destRectangle.Y in client/entity/Draw. Â otherwise you would probably need to heavily edit the source to make the sprite size larger than one tile Link to comment Share on other sites More sharing options...
0 Dagobah Posted June 29, 2020 Author Share Posted June 29, 2020 `thank you for the answer! i w think te best answer would be edit the sprite Link to comment Share on other sites More sharing options...
Question
Dagobah
i have an animal sprite that is close to two tiles of width but the collision is only one tile and is in a different position of the sprite so i was wondering if is anyway way to edit the collision of the entities.
Â
Â
Thank you
Â
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now