Reply to Re: Dink and the HUB
If you don't have an account, just leave the password field blank.
I'm not sure this is what you want, but here's the script that I used in dvsm2 to blow the rock from the cave(only the hit function). I think I took it from some other DMOD, just can't remember which.
I'm pretty sure you'll understand it, but I commented it still.
void hit(void)
{
int &rcrap = compare_sprite_script(&missle_source, "dam-bomn");
//this checks if the sprite was hit by a bomb(checks the
//missile's script)
if (&rcrap == 1)
//if the missile's script is the one we searched for
{
sp_hard(¤t_sprite, 1);//kill the hardness
draw_hard_sprite(¤t_sprite);//redraw the hardness
sp_active(¤t_sprite, 0);//kill the rock
playsound(43, 22050, 0,0,0);//play the "unlock" sound
int &hold = sp_editor_num(¤t_sprite);
//editor stuff, so the rock will never show up again
if (&hold != 0)
editor_type(&hold, 1);
}
}
One more advice: if you intend to make an un-linear story, just make sure that the best ending will be avaible, nomather the order you'll complete the tasks. It's quite annoing to finish the game, then having to start it over because at a certain moment, you missed one task(in lot, i missed the muttant quest, but i cheated, because i didn't want to start the second part again).
Good luck, and I can't way to play your DMOD
I'm pretty sure you'll understand it, but I commented it still.
void hit(void)
{
int &rcrap = compare_sprite_script(&missle_source, "dam-bomn");
//this checks if the sprite was hit by a bomb(checks the
//missile's script)
if (&rcrap == 1)
//if the missile's script is the one we searched for
{
sp_hard(¤t_sprite, 1);//kill the hardness
draw_hard_sprite(¤t_sprite);//redraw the hardness
sp_active(¤t_sprite, 0);//kill the rock
playsound(43, 22050, 0,0,0);//play the "unlock" sound
int &hold = sp_editor_num(¤t_sprite);
//editor stuff, so the rock will never show up again
if (&hold != 0)
editor_type(&hold, 1);
}
}
One more advice: if you intend to make an un-linear story, just make sure that the best ending will be avaible, nomather the order you'll complete the tasks. It's quite annoing to finish the game, then having to start it over because at a certain moment, you missed one task(in lot, i missed the muttant quest, but i cheated, because i didn't want to start the second part again).
Good luck, and I can't way to play your DMOD






