The Daily Click ::. Forums ::. Klik Coding Help ::. creating split screen?
 

Post Reply  Post Oekaki 
 

Posted By Message

MasterM



Registered
  02/01/2002
Points
  701

I am an April Fool
10th December, 2011 at 16:40:39 -

i know this has been asked a lot before but i dont know the answer but since it has been asked a lot before i HOPE i'll get an answer

so how do i do two player split screen with a scrolling background? i am using TGF 2 newgrounds edition so I don't think there are any fancy plug ins to help me but I think it can probably be done with LAYERS.

yours thoughts?

if you don't really know a solution let's just talk about it and discuss so maybe we can come up with something. k thx

 
Image

Silveraura

God's God

Registered
  08/08/2002
Points
  6746

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
11th December, 2011 at 05:13:33 -

Does TGF2 have Sub-application objects?

 
http://www.facebook.com/truediamondgame

MasterM



Registered
  02/01/2002
Points
  701

I am an April Fool
12th December, 2011 at 08:41:55 -


Originally Posted by Silveraura
Does TGF2 have Sub-application objects?



the sub clip application was the only solution i could think of myself. now you should bear in mind I am using the newgrounds edition of TGF 2 to build an SWF file so it is impossible to have sub apps.

 
Image

The Chris Street

Administrator
Unspeakably Lazy Admin

Registered
  14/05/2002
Points
  15380

Game of the Week WinnerClickzine StaffAcoders MemberKlikCast StarVIP MemberPicture Me This Round 35 Winner!Second GOTW AwardYou've Been Circy'd!Picture Me This Round 38 Winner!GOTM December Third Place!!
I am an April FoolKliktober Special Award Tag
12th December, 2011 at 09:51:17 -

Sub-apps aren't reliable anyway for an accurate 2-player experience. If you store players X/Y position, animation frame and direction data in Global Values across two cloned frames, there is a delay as the data is transferred across the two sub-app objects.

 
London 2012 - Promotional Video
http://www.youtube.com/watch?v=W7CkIrx9mXY

http://www.acoders.com
http://www.youtube.com/tehowchies
http://twitter.com/thechrisstreet

Image

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
12th December, 2011 at 10:20:56 -

for a crude way of doing things could you not have your entire level repeated twice in the frame?

For example:

Layer1 is player 1 background
Layer2 is player 2 background
Layer3 is player 1 actives/platforms whatever
Layer4 is player 2 actives/platforms whatever

Now instead of having the playfield follow the player(s), make the controls directly influence the background layers.

I know it's not pretty but I assume it can be done this way

Edited by lembi2001

 
n/a

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
15th December, 2011 at 12:53:35 -

Does it absolutely have to be split screen? A nice alternative may be to zoom the game out so that the two players are always visible. When they become too tiny to see well, you fade a kind of circle over the top to show where they are.

You may find that easier.

 
191 / 9999 * 7 + 191 * 7

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2976

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
15th December, 2011 at 17:44:53 -

I believe that would need shaders and MasterM's using TGF2NE... I think

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2722
18th December, 2011 at 13:39:30 -

Create your own custom level with both players and draw it two times?
One for player 1 and one for player 2?

However, that might require some computing power. Basically it's just one level database which then needs to be rendered two times on half screen width or height from two points of view.

 
Image jenswa.neocities.org
   

Post Reply



 



Advertisement

Worth A Click