Mouse Y-movement only?

For questions about using Classic.

Post » Mon Mar 02, 2009 3:46 pm

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.
B
7
G
4
Posts: 32
Reputation: 1,596

Post » Mon Mar 02, 2009 3:47 pm

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.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Mon Mar 02, 2009 3:49 pm

Thanks a lot! This worked :D
B
7
G
4
Posts: 32
Reputation: 1,596


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests