Reply to Re: Blood Scorpions
If you don't have an account, just leave the password field blank.
The thing to know is that text created by say_xy, say_stop_xy, etc. can usually be treated exactly like a sprite. Of course you can't change the sequence/frames, but you can change the x value with sp_x and the y value with sp_y and so on.
So you just need to use sp_kill.
//script attached to 1000
//Say the text up here, so when sp_kill(&text,1) happens the first time,
//it doesn't delete another sprite accidently.
&text = say_xy("Time left : &counter", 0, 380);
loop:
wait(1000);
&counter -= 1;
//&text is now defined as a global, is that ok?
//yeah, but it can be local too
sp_kill(&text,1);
&text = say_xy("Time left : &counter", 0, 380);
//Um... you want the loop to end sometime, right?
if (&counter > 0) goto loop;
So you just need to use sp_kill.
//script attached to 1000
//Say the text up here, so when sp_kill(&text,1) happens the first time,
//it doesn't delete another sprite accidently.
&text = say_xy("Time left : &counter", 0, 380);
loop:
wait(1000);
&counter -= 1;
//&text is now defined as a global, is that ok?
//yeah, but it can be local too
sp_kill(&text,1);
&text = say_xy("Time left : &counter", 0, 380);
//Um... you want the loop to end sometime, right?
if (&counter > 0) goto loop;