im trying to make a two player game, ant it requires both split screen and x and y scrolling, and i was wondering how i would do this, as the only way to scroll i know of involves using the whole screen. if this isnt possible, i can always use an extremely zoomed out view, although it wont be quite as good.
Offline
urhungry wrote:
im trying to make a two player game, ant it requires both split screen and x and y scrolling, and i was wondering how i would do this, as the only way to scroll i know of involves using the whole screen. if this isnt possible, i can always use an extremely zoomed out view, although it wont be quite as good.
It's possible, but I'm not sure how. My guess would be to have a "real" x and y position and a "virtual" x and y position for every sprite that will need moving and work from there out (if that doesn't make sense I can explain further if you want)
Offline
Maybe you could make two separate scrollers in the screen... I'm going to experiment to see if what I think is right
EDIT: Nevermind, I just noticed it required X and Y scrolling. I just made a split-scroller but only with X scrolling. Is split Y scrolling even possible, anyways?
Last edited by technoguyx (2010-01-10 21:51:11)
Offline
technoguyx wrote:
EDIT: Nevermind, I just noticed it required X and Y scrolling. I just made a split-scroller but only with X scrolling. Is split Y scrolling even possible, anyways?
![]()
Yes it's possible, but it gets rid of a 3rd of the screen and lags a lot XD
Offline
Do you mean like (the best example I can come up with) 2 player in Mario Cart? where player1 is at the top of the screen and player2 at the bottom? make a regular scroller on the top of the screen, and another on the bottom.If the ground comes toward you, you need a background sprite for p2 that goes in front of the terrain for p1.
Offline
you could do this and make it without the background sprite.
If(p1y)<0
hide
Offline
Try making each piece of terrain small and say if scrollX or scrollY is less than or more than something, make it hide?
Or better: render everything with stamps!!!
(I will not explain, mainly because I just randomly said that)
Offline