Hi all!
I'm working on a ball & paddle project, where I want to be able to use the mouse.
How do I make it only follow the Y, and disable X. In the axis?
So the paddle only goeas left and right, not up and down.
Tell me if I'm unclear.
Paddle: Set X to 100 (fixed position)
Paddle: Set Y to MouseY
However, if you want it to move left and right, reverse the X and Y. Y should be fixed (say, at 460 if you are using 640x480 resolution), while X should refer to MouseX.
Develop games in your browser. Powerful, performant & highly capable.
Thanks a lot! This worked