This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-01-10 18:16:49

urhungry
Scratcher
Registered: 2009-07-03
Posts: 1000+

Split screen scrolling

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

 

#2 2010-01-10 18:33:37

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Split screen scrolling

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

 

#3 2010-01-10 18:41:46

urhungry
Scratcher
Registered: 2009-07-03
Posts: 1000+

Re: Split screen scrolling

yeah, more explanation would be good. i think im just gonna do a super zoomed out game.

Offline

 

#4 2010-01-10 21:20:02

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Split screen scrolling

Maybe you could make two separate scrollers in the screen... I'm going to experiment to see if what I think is right  smile

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?  yikes

Last edited by technoguyx (2010-01-10 21:51:11)


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#5 2010-01-11 02:43:10

urhungry
Scratcher
Registered: 2009-07-03
Posts: 1000+

Re: Split screen scrolling

I have no idea. I kinda ruined the game anyways, thanks for the help.

Offline

 

#6 2010-01-11 07:00:08

deatheater
Scratcher
Registered: 2008-04-11
Posts: 1000+

Re: Split screen scrolling

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?  yikes

Yes it's possible, but it gets rid of a 3rd of the screen and lags a lot XD

Offline

 

#7 2010-01-11 18:37:15

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: Split screen scrolling

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.


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#8 2010-01-11 20:30:01

urhungry
Scratcher
Registered: 2009-07-03
Posts: 1000+

Re: Split screen scrolling

Yes I mean like that, but dosent scrolling take the whole screen?

Offline

 

#9 2010-01-12 07:30:27

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: Split screen scrolling

you could do this and make it without the background sprite.
If(p1y)<0
hide


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#10 2010-01-12 11:38:50

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Split screen scrolling

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)


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

Board footer