Can't move Overlay text outside the screen

Started by tiagocorreia, Tue 11/07/2006 17:08:23

Previous topic - Next topic

tiagocorreia

I've a room which is very large (more then 800px), and I've created an Overlay of Text outside the screen, that for some reason it doesn't appear outside the screen.

Try this

Code: ags

o =  Overlay.CreateTextual(-10, 100, 100, 1, 15, "teste");  


I've tried this, and if I move later, then it reposition the overlay ok.
Code: ags

o.X = -10;


Is this a bug?

Pumaman

Heh, this is actually a "hidden feature" whereby passing a negative number for the X co-ordinate will centre the overlay on the screen instead.

I'm not sure whether I should fix this, just in case anyone is relying on it working this way...

monkey0506

Maybe you could create an Overlay.Centre() function and fix it?

tiagocorreia

I guess you should give. It's really an hidden feature.

SMF spam blocked by CleanTalk