Reply to Re: projectile script
If you don't have an account, just leave the password field blank.
I believe I can fix this problem. The projectile isn't doing any damage because the wrong command is being used.
sp_hurt(&temp, &strength) won't work because you're telling the game to injure the returned brain parameter. Notice
int &temp = sp_brain_parm(&missl,-1);
Oops.
But even with that mistake, sp_hurt() will not work. What you want is much, much simpler...
Just under
sp_timing(&missl, 0);
sp_speed(&missl, 6);
merely add
sp_strength(&missl, &strength);
Because the ninja star has a missle brain, anything it touches will be dealt that damage once it hits when you use that command.
sp_hurt(&temp, &strength) won't work because you're telling the game to injure the returned brain parameter. Notice
int &temp = sp_brain_parm(&missl,-1);
Oops.
But even with that mistake, sp_hurt() will not work. What you want is much, much simpler...
Just under
sp_timing(&missl, 0);
sp_speed(&missl, 6);
merely add
sp_strength(&missl, &strength);
Because the ninja star has a missle brain, anything it touches will be dealt that damage once it hits when you use that command.