Hello friends. Today, I've been working on my project. The main thing I added was a drag and place feature for some building blocks. (The gray blocks have this feature) What I need help with now, is how I should handle the collision, so that the player cant walk into the same tile as the block. I would be capable of doing it on my own, but then I would have to do it by actually checking the position of the player and all the boxes, and if the player is next to a box, make it impossible for the player to walk into that tile.
Here is the GitHub link: https://github.com/BerlingSwe/GridGame
And here is the actual project:
NOTE: The gray blocks are drag and place blocks.
[HELP] Grid based collision
-
- Posts: 13
- Joined: June 17th, 2017, 5:46 pm
- Location: Sweden
[HELP] Grid based collision
Last edited by BerlingSwe on June 18th, 2017, 8:19 pm, edited 1 time in total.
- Battlefrog
- Posts: 69
- Joined: March 31st, 2015, 10:10 pm
- Location: Florida, United States of America
Re: [HELP] Grid based collision
Forgot this -> ]
Broc W.
Sole Member of Sledgehog Software, trademark and LLC status pending.
Sole Member of Sledgehog Software, trademark and LLC status pending.