Jmelo129 / TD-Game

Planning for the Tower Defense Game
0 stars 0 forks source link

Incorrect Mouse vs. Tower Placement #6

Closed Jmelo129 closed 9 months ago

Jmelo129 commented 9 months ago

For some reason, when clicking on a certain tile with your mouse, the tower isn't placing in the correct location.

Jmelo129 commented 9 months ago

UPDATE:

It seems that the problem is because of how we are offsetting the tiles due to the canvas incorrectly drawing tiles, and so we likely just need to offset the mouse click accordingly.

Jmelo129 commented 9 months ago

Issue has been fixed! XD

Just needed to add an offset.