Reply to Re: Current Sprite
If you don't have an account, just leave the password field blank.
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(¤t_sprite,-1000);
preload_seq(860);
sp_touch_damage(¤t_sprite, -1);
}
void touch( void )
{
freeze(1);
sp_touch_damage(¤t_sprite,0);
int &csx = sp_x(¤t_sprite,-1);
int &csy = sp_y(¤t_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...
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(¤t_sprite,-1000);
preload_seq(860);
sp_touch_damage(¤t_sprite, -1);
}
void touch( void )
{
freeze(1);
sp_touch_damage(¤t_sprite,0);
int &csx = sp_x(¤t_sprite,-1);
int &csy = sp_y(¤t_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...
