Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

Screen->ClearSprites();

7 replies · 1,489 views · Started 28 August 2008

Screen->ClearSprites(1);

In the global script.
It works in an ffc script, but not when placed in the global script.

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.