A little bug in the Omousedown method with the willblockedpath

hi,
I think that there is a little bug here on the Onmouedown Method.
if you are placing a tower everything is working correctly but is you are just pressing on the mouse without being able to place a tower, you are actually blocking the pass for the ram and the Text is turning grey. I think this can cause some problems latter. anyway maybe it is being fix latter on or that is doesn’t really matter. anyone else noticed that? some easy fixes?

Hi gilf,

Have you already compared your code to the Lecture Project Changes which can be found in the Resources of this lecture? If I remember correctly, the original path gets restored if a tower cannot be spawned.

If your code is the same as Gary’s, I would suggest to continue watching. He changes parts of the code in the following videos. Have you already completed this section? If not, do that please and let me/us know if the bug persists.

hi Nina,
This problem is being fixed just at the next lecture.
Thanks for your attention.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms