Heya,
I'm trying to create a simple overlay which stays on-screen until i decide not, I've read the Manuel and it's say to declare the Overlay* at the top of the script,
// room script file
Overlay* myOverlay;
function room_Load()
{
myOverlay.CreateGraphical(100, 100, 6);
}
The overlay appears for a few seconds and then disappears.
CreateOverlay is a static method (called from the type, rather than the particular object) that returns overlay object. You must save that object in a variable:
myOverlay = Overlay.CreateGraphical(100, 100, 6);