The Dink Network

Reply to Re: Chase scene help for upcoming DMOD

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:
 
 
December 28th 2018, 04:30 AM
wizardb.gif
Bluedy
Peasant He/Him Romania bloop rumble
I like Frutti Fresh 
Aight I did it. Lep pretty much did it.

void main(void)
{

sp_nodraw(&current_sprite, 1);
int &monster = create_sprite(5000,5000,0,170,1); //Create sprite offscreen
sp_touch_damage(&monster, 2); //Set damage

int &temp_x = sp_x(1,-1);
int &temp_y = sp_y(1,-1);

//Step two: Run a loop that gets dink's coords and  then waits (2000) (2 seconds(or however long you want))

FetchCoordLoop:
wait(200);  //increase later

//set coords
sp_x(&monster, &temp_x);
sp_y(&monster, &temp_y);
wait(1);

//get coords
&temp_x = sp_x(1,-1);
&temp_y = sp_y(1,-1);

goto FetchCoordLoop;
}


posted for anyone who might need this in the future