Off Screen Windows?

Started by Heretic86, July 10, 2012, 07:44:18 pm

Previous topic - Next topic

Heretic86

I've tried to find the core class Window, but cant seem to find it anywhere.  But what I really want to know is if there is any Clamping going on that prevents a window from appearing at least partially off screen.  And if there is, is it possible to somehow disable the Clamping to allow a window to appear partially off screen?
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

ForeverZer0

There is no clamping. Just set its coordinates off or partially off screen.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Heretic86

I found the clamping.  It wasnt using min / max values to clamp.

BTW, how come youre like the only person that ever answers my questions?  Are you just that awesome F0?
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

ForeverZer0

Quote from: Heretic86 on July 10, 2012, 09:00:11 pm
I found the clamping.  It wasnt using min / max values to clamp.

What clamping? Windows are only displayed within their viewport, but even that isn't clamping, its just the render area. You can move a window's X coordinate to 18923, and that is its location. It is obviously not rendered or able to be seen, but logically that is where its at. If you made a loop that moved it one pixel per frame to the left, it would take 19823 frames before you would see its left edge appear on the screen. Its logical location is not clamped to the display area.

Quote from: Heretic86 on July 10, 2012, 09:00:11 pm
BTW, how come youre like the only person that ever answers my questions?  Are you just that awesome F0?


8)
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Blizzard

Yeah, viewports do more of a cut-off thing.

Quote from: Heretic86 on July 10, 2012, 09:00:11 pm
BTW, how come youre like the only person that ever answers my questions?  Are you just that awesome F0?


I'm just lazy. ._. And yes, he is that awesome.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Heretic86

It was just a limitation on the window position elsewhere in the code I didnt spot earlier.  @x = 0 if @x < 0  Limited to the screens range basically.
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)