The Dink Network

Reply to Re: Is there a command to "disable Y movement" ?

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
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.