Forum Discussion
TuomoNaskali
3 years agoCommunity Member
How to prevent character moving through maze walls?
Hi all!
I have a maze and a character that I move with buttons (up/down/left/right).
I have added triggers to prevent the character from moving through walls: When character intersects with wall...
PhilMayor
3 years agoSuper Hero
When I build something like this I created a grid (and map the x,y) and then mapped out which directions could be moved on each square and then built the logic to disable the buttons that could not be moved based on the x, y functions.
To prevent clicking to quickly I would always disable the buttons when you press them and reenable them when the motion path animation completes.