Alone together
Cascading Style Sheets
63
Posts
3
Topics
3
Followers
A member registered Aug 01, 2020 · View creator page →
Creator of
The time traveling stealth game
Puzzle
Play in browser
Recent community posts
Pathfinder - Brackeys 2020.2 jam comments · Replied to SupHernan in Pathfinder - Brackeys 2020.2 jam comments
Thanks for playing!
a simplified rundown of the process would be:
- break if the player is not holding down the mouse
- get the mouse world position then floor it to an int get tile coords
- break out of the function If the player is hovering over a square that is blocked by a collision tile
- break out of the function if the player is hovering over a tile that is already in the list
- break out of the function if the player is hovering over a tile that isn't adjacent to an existing list entry
- Add the position to the list
- redraw arrow path
So basically take that process and sprinkle in 2 AM spaghetti coding to taste and you got my script
Pathfinder - Brackeys 2020.2 jam comments · Replied to gladgib in Pathfinder - Brackeys 2020.2 jam comments
Brackeys Jam 2020.2 community · Replied to Adro05 in Let me play & rate your game, then you play & rate mine!
Pathfinder - Brackeys 2020.2 jam comments · Replied to Saculrotsen in Pathfinder - Brackeys 2020.2 jam comments
Pathfinder - Brackeys 2020.2 jam comments · Replied to meganinja223 in Pathfinder - Brackeys 2020.2 jam comments
unfortunately i have to agree, as i made the planning screen more user friendly (automatically rewinding) it made the manual rewind less and less necessary, I was hopping it would still provide a way to see the guard's path to choose a better one (to hopefully avoid pure trial and error). But some of the levels have such specific required paths that it does become a trial and error.