Reply to Re: Moving sprite damaging other sprites
If you don't have an account, just leave the password field blank.
sp_my didn't do the trick, but sp_dir did!
The only thing that isn't working anymore is that I can't damage the missile by touching it. I know this sounds ridiculous, but I can't tell you what I'm working on yet. I just need to make it so when I touch the missile, it gets damage. With brain 10, I used to do this:
void touch (void)
{
hurt(¤t_sprite, 100);
}
simple as that. Now it's a missile brain, I made this:
void touch (void)
{
sp_touch_damage(¤t_sprite, -1);
sp_brain(¤t_sprite, 10);
hurt(¤t_sprite, 100);
}
However, it doesn't work: the missile sprite doesn't receive any damage. It does receive damage when I hit it however (which is good).
Anyone know how to fix this?
The only thing that isn't working anymore is that I can't damage the missile by touching it. I know this sounds ridiculous, but I can't tell you what I'm working on yet. I just need to make it so when I touch the missile, it gets damage. With brain 10, I used to do this:
void touch (void)
{
hurt(¤t_sprite, 100);
}
simple as that. Now it's a missile brain, I made this:
void touch (void)
{
sp_touch_damage(¤t_sprite, -1);
sp_brain(¤t_sprite, 10);
hurt(¤t_sprite, 100);
}
However, it doesn't work: the missile sprite doesn't receive any damage. It does receive damage when I hit it however (which is good).
Anyone know how to fix this?