Kill that rock
I'm trying to do a bomb that will blow a rock, but I can't get it working... The rock is blocking a secret path, and you have to blow that rock with a bomb. I have been thinking of this a time now, and I realized I don't have that much of time before the d-mod has to be done...
Can someone help me here? Please!
Can someone help me here? Please!
It's not that hard to do: use this hit procedure in the rock's script:
void hit(void)
{
int &rcrap = compare_sprite_script(&missle_source, "dam-bomn");
if (&rcrap == 1)
{
sp_hard(¤t_sprite, 1);
draw_hard_sprite(¤t_sprite);
sp_active(¤t_sprite, 0);
playsound(43, 22050, 0,0,0);
int &hold = sp_editor_num(¤t_sprite);
if (&hold != 0)
editor_type(&hold, 1);
}
}
The rock should dissapear when you use a normal bomb on it.
void hit(void)
{
int &rcrap = compare_sprite_script(&missle_source, "dam-bomn");
if (&rcrap == 1)
{
sp_hard(¤t_sprite, 1);
draw_hard_sprite(¤t_sprite);
sp_active(¤t_sprite, 0);
playsound(43, 22050, 0,0,0);
int &hold = sp_editor_num(¤t_sprite);
if (&hold != 0)
editor_type(&hold, 1);
}
}
The rock should dissapear when you use a normal bomb on it.
Have you tried the Bombrox Video Tutorial? If you don't have broadband, let me know, and I'll post a couple scripts.










