I’m making a game similar to pacman and I currently have two Button objects: one is the pacman, and one is the food.
Here’s my code for the food:
Here’s my code for the pacman (link because of restriction):
https://imgur.com/vNW9BU9
The hitTest doesn’t seem to be working. It’s returning true even before I move my pacman.
Please help.