The Dink Network

Is there a command to "disable Y movement" ?

August 10th 2003, 04:18 AM
spike.gif
If not, is there a way to make the mouse stop at hardnesses?

Thanks,
Eero
August 10th 2003, 07:23 AM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
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(&current_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.