The Dink Network

Reply to Re: Complicated Dink C

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:
 
 
June 13th 2006, 03:12 PM
goblinm.gif
You need to learn how to use brain 17. Brain 17 is a missile brain which cycles once (IIRC). So you would do something like:

void use( void )
{
int &my_x=sp_x(1, -1);
int &my_y=sp_y(1, -1);
int &my_dir = sp_dir(1, -1);
if (&my_dir == 2)
{
&my_y += 30;
//^If dink is facing down, we will make an explosion sprite below him on the screen.
}
...
...
...
int &junk = create_sprite(&my_x, &my_y, 17, 70, 1);
//^I think 70 is the correct sequence, but it's been a while...
sp_script(&junk, "explosio");
}

More to come...