Re: Most Run Time effecient Split Screen?
The source region (X,Y,W,H) is the square that you want the viewport show... In your case, it's the position of the screen.
If you want viewport show what is arround the object "Active" with a 320x240 screen you do that :
Code:
> Always :
- Set source region of viewport to (X("active"),Y("Active")),(320,240)
Re: Most Run Time effecient Split Screen?
For viewport is there some kind of example that I can look at. Cause as it is I still don't understand how to set the source region.
Yours is like this Max(512+256, X( "a_ship1" ))-256 Y=0 512, 160.
Also with yours their is no Center window to 0, 0 of active(player)
Does that mean I have to get rid of that or something? So many different variables. Like with the Max term, I have no idea how I would even figure that out. This is why I ask if there is a Help file, or Example for Viewport.
Re: Most Run Time effecient Split Screen?
X=Max(512+256, X( "a_ship1" ))-256
"Max()" is to limit to the left border when scrolling.
X=X("a_ship1")-256
"-256" is here because the width of the screen is 512, so to center the viewport to the active I use the X coordinate of the active - screen width / 2