I would change the window size of a scrolling game with different custom settings for each frame (different places)
I used the Window Object , resizing the client area of a frame of an application maximized on boot-up, and all other global display proprieties set off
the window object set a different client size, but make disappear all the black border around the window shape wich I want to keep visible, and moreover the extension puts the window in the high-left corner of the screen, wich sucks.
Your scrolling would be ok but set the same window setting for all the game (always the same window size)
I mean literally change the window shape (in X/Y sizes) trough code, different times and with different sizes, without losing the border and without the window in the corner.
thanks anyway.
I update my example with right and explicit questions (see comments in the code)
You must give +320 size to level width
&&+240 size to level height
Your levels new origin must be 160,120 for scrolling.
PLus you must limit scrollin..
Use this(
scroolx = min(max(xposofanobj,160+320),levelswidth-160-320)
scrooly = min(max(yposofanobj,160+240),levelsheight-160-240)
)
I too may love Apu, but only for his frisky ponies in the backyard stable. Ahhh...frisky ponies.
"Actually sir, we found a tiny unicorn in your exhaust. It was jumping around poking holes in your gas tank." "Oh thank you I did not know that. A tiny unicorn? Wow."