PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

How to refresh?

I have a routine where I use :

showsprite(sprite$, true);
g_showmessage("dsdsd");

However, when the message pops up, the sprite isn't visible. I figure this is because the program hasn't rendered the sprite yet. I would like to know what code I should place to allow the sprite to be visible, THEN have the measage appear. I have tried rendersprites (got an error), and processsprite() (got another error).

Thanks.
Use:

g_beginscene
rendersprites
g_update

This should work.
It is still not processing the code. It puts up the messagebox, then after it closes, the desired sprites appear. any other suggestions?
ProcessSprites(true, true) just before the rendersprites() should do it.
That did it. Thanks. So I need all that code to refresh the screen?
Yes, the sprites are only processed during the main games procedure and you need to prepare the screen for an update.