Reply to Re: Complicated Dink C
If you don't have an account, just leave the password field blank.
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...
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...