The Dink Network

Kill that rock

September 5th 2006, 05:01 PM
custom_marpro.png
Marpro
Peasant He/Him bloop
 
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!
September 5th 2006, 05:52 PM
knightg.gif
cypry
Peasant He/Him Romania
Chop your own wood, and it will warm you twice. 
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(&current_sprite, 1);
draw_hard_sprite(&current_sprite);
sp_active(&current_sprite, 0);
playsound(43, 22050, 0,0,0);

int &hold = sp_editor_num(&current_sprite);
if (&hold != 0)
editor_type(&hold, 1);
}
}

The rock should dissapear when you use a normal bomb on it.
September 5th 2006, 05:54 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Have you tried the Bombrox Video Tutorial? If you don't have broadband, let me know, and I'll post a couple scripts.
September 6th 2006, 08:40 AM
custom_marpro.png
Marpro
Peasant He/Him bloop
 
Yepp, it works now!
Thanks cypry, and I'll download that video tutorial now... Could learn something