Reply to KM2 script problem
If you don't have an account, just leave the password field blank.
I am working on Kill Murdoock! 2, but I've ecountered a stupid bug just after I began to work.
void main( void )
{
sp_nodraw(¤t_sprite, 1);
sp_touch_damage(¤t_sprite, -1);
}
void touch ( void )
{
sp_touch_damage(¤t_sprite, 0);
freeze(1);
playsound(24, 22052, 0, 0, 0);
&bum = create_sprite(212, 373, 7, 167, 1);
sp_seq(&bum, 167);
wait(200);
&en = create_sprite(213, 373, 0, 349, 1);
freeze(&en);
wait(1000);
unfreeze(1);
}
This is a script attached to an obstacle, which should be invisible; when Dink touches it, it should spawn an explosion and an enemy in it. But in the reality (
), when Dink touches it, I can HEAR an explosion... but nothing is drawn. Why?
void main( void )
{
sp_nodraw(¤t_sprite, 1);
sp_touch_damage(¤t_sprite, -1);
}
void touch ( void )
{
sp_touch_damage(¤t_sprite, 0);
freeze(1);
playsound(24, 22052, 0, 0, 0);
&bum = create_sprite(212, 373, 7, 167, 1);
sp_seq(&bum, 167);
wait(200);
&en = create_sprite(213, 373, 0, 349, 1);
freeze(&en);
wait(1000);
unfreeze(1);
}
This is a script attached to an obstacle, which should be invisible; when Dink touches it, it should spawn an explosion and an enemy in it. But in the reality (
