Jmelo129 / TD-Game

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

Tower Placement #7

Closed ghost closed 7 months ago

ghost commented 7 months ago

When trying to place a tower, it was very inconsistent and most of the time, you had to click the tile several times in order for the tower to actually place. This was due to the fact that all the events ran at the same time and so when clicking, there was a chance that another event was happening at that time and so the click was disregarded.

ghost commented 7 months ago

To fix this we just did some slight reworking to the logic of our code so that the mouse event could run simultaneously with the program, allowing it to be detected instantly and consistently.