Doesn't work in global scripts.
Screen->ClearSprites();
How are you using it?
Screen->ClearSprites(1);
In the global script.
It works in an ffc script, but not when placed in the global script.
Erm, could you post more of the script? So I can see what goes around that line?
Well I've taken it out of my global script now, and it's horrendously complicated.
I've replaced it in an ffc script where it triggers at exactly the same frame, and it works perfectly.
global script clearsprites{
void run(){
Waitframes(120);
Screen->ClearSprites(1);
}
}Interestingly though, this works as you'd expect it to.
It was definately being called in my global script before though, I had a trace on the line next to it to check and everything...
The way I expect it to work is to clear all sprites roughly 2 seconds after the game starts. Try throwing a while loop around it, see if it does it every 2 seconds.
Which is what happens.
I'll give that a go later.
Not a bug (at least in b864). I tested it with all 6 possible inputs, and all work as they are supposed to.