The Dink Network

Reply to Re: Current Sprite

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:
 
 
January 16th 2006, 05:28 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Ok, for me it wasn't clear what the 860 sequence was, but I now think that it is the falling sprite.
Answer no1: You don't have a sp_nodraw(1,1); command, so dink will be drawn normaly...
Answer no2: You make a falling sprite, and then you try to make Dink do the animation, not the falling sprite...

I don't feel like giving complicated instructions to fix it, so I'll just give you the edited script:

void main(void)
{
sp_que(&current_sprite,-1000);
preload_seq(860);
sp_touch_damage(&current_sprite, -1);
}
void touch( void )
{
freeze(1);
sp_touch_damage(&current_sprite,0);
int &csx = sp_x(&current_sprite,-1);
int &csy = sp_y(&current_sprite,-1);
&csx -= 8;
&csy -= 4;
int &newhole = create_sprite(&csx,&csy,7,860,1);
sp_nodraw(1,1);
sp_seq(&newhole,860);
wait(2000);
script_attach(1000);
fade_down();
&player_map += 1;
sp_x(1,&csx);
sp_y(1,&csy);
load_screen();
draw_screen();
sp_nodraw(1,0);
fade_up();
kill_this_task();
}

I hope this helps...