The Dink Network

how do i script this .c file?

August 11th 2002, 08:45 AM
duckdie.gif
how would i script a .c file to make a sprite (not dink) to walk off screen and never come back?

im really really really new at this!!!!!!!
August 11th 2002, 09:02 AM
anon.gif
Ric
Ghost They/Them
 
: how would i script a .c file to make a sprite (not dink) to walk off screen and never come back?

: im really really really new at this!!!!!!!

in the script , use this:

freeze(&current_sprite);

move(&current_sprite,6,700,1);

current_sprite is automaticly the sprite the script is attached to, 6 is to the right(as per number keypad ), the screen is 400 * 600 so 700 is off to the right, and 1 means he ignores hardess. Freeze means he'll stay there.

If that is in main, it will happen right away, so choose where in the script you want it to happen.
August 11th 2002, 09:41 AM
wizardg.gif
Paul
Peasant He/Him United States
 
Add these lines:

int &hold = sp_editor_num(&current_sprite);

editor_type(&hold, 1);

to that if you really want the sprite to permanently gone from the screen even when dink leaves and comes back.