Hi @Siyue,
What are you trying to do precisely? Can you link the video / original link that you are talking about?
The mouseY
value is the y
coordinate of the mouse in the canvas. So if your canvas is 800x800 pixels, then mouseY
will be between 0 and (800 - 1) pixels. Therefore the above condition will rarely be true since 1
is really small.