Reply to Re: Damage Spell
If you don't have an account, just leave the password field blank.
Hrm, odd.
You're better off doing something like this:
Give it a brain of 9 (which you know will work with sp_strength), freeze it, figure out the exact time it will take for the animation to play (frame delay * number of frames), and then kill it. So like:
void main(void )
{
int &str = 5;
&str * &spell_level-earth;
freeze(&current_sprite);
sp_brain(&current_sprite, 9);
sp_seq(&current_sprite, 37);
sp_range(&current_sprite, 30);
sp_strength(&current_sprite, &str);
playsound(6, 22050, 0,0,0);
wait(1500); //or whatever
sp_kill(&current_sprite,1);
kill_this_task();
}
Sorry for re-organizing the script... bad habit
You're better off doing something like this:
Give it a brain of 9 (which you know will work with sp_strength), freeze it, figure out the exact time it will take for the animation to play (frame delay * number of frames), and then kill it. So like:
void main(void )
{
int &str = 5;
&str * &spell_level-earth;
freeze(&current_sprite);
sp_brain(&current_sprite, 9);
sp_seq(&current_sprite, 37);
sp_range(&current_sprite, 30);
sp_strength(&current_sprite, &str);
playsound(6, 22050, 0,0,0);
wait(1500); //or whatever
sp_kill(&current_sprite,1);
kill_this_task();
}
Sorry for re-organizing the script... bad habit