Is there a command to "disable Y movement" ?
If not, is there a way to make the mouse stop at hardnesses?
Thanks,
Eero
Thanks,
Eero
Hmm... I assume you want to try something like a mouse-controlled Dinkanoid? The best way to do this is to just have the screen filled with a big, invisible button (with a SET_SPRITE_INFO of something like 320 240 -320 -240 320 240), and have a sprite follow the mouse pointer's x coordinate.
So for your 'paddle' sprite, give it this script:
void main(void)
{
int &dinkx;
loop:
&dinkx = sp_x(1,-1);
sp_x(¤t_sprite,&dinkx);
wait(100);
goto loop;
}
Then you could easily make the mouse pointer invisible, while the 'paddle' only appears to move on the x coordinate plane.
So for your 'paddle' sprite, give it this script:
void main(void)
{
int &dinkx;
loop:
&dinkx = sp_x(1,-1);
sp_x(¤t_sprite,&dinkx);
wait(100);
goto loop;
}
Then you could easily make the mouse pointer invisible, while the 'paddle' only appears to move on the x coordinate plane.