The Daily Click ::. Forums ::. Klik Coding Help ::. Split screen tgf
 

Post Reply  Post Oekaki 
 

Posted By Message

A.C. softwareŠ



Registered
  21/07/2002
Points
  60
24th February, 2004 at 17:30:31 -

i would like to know about how to do a split screen game in tgf?, any ideas/help?

 
help!, i've fallen and i cant ge....hey, nice carpet!

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
24th February, 2004 at 19:54:23 -

well, the only way I know how to do a splitscreen is to make a ton of different active objects. You have to make all the obstacle backdrops be active objects, make 2 active objects per object(1 for 1st player screen and one for 2nd player). Then you have to move the X,Y coordinates of everything on a screen instead of using regular scrolling.

The only other way to do this is to use a splitscreen extension that I've never heard of.

 
n/a

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
24th February, 2004 at 20:46:54 -

I don't know how in TGF, but in MMF it's possible by using the Sub-Application extension.

 
http://www.klik-me.com

:JULI@N:



Registered
  14/07/2002
Points
  641
24th February, 2004 at 22:03:09 -

make two applications, in one put the two players with whatever movement you want, but make the screen scroll just follow player one. in the other application again put the two players, this time with a static movement, and make the scroll center now on player 2.
the idea is to always make an ini save the positions of the objects of window one and make window 2 load them

Image Edited by the Author.

 
n/a

Nicholas S Wilson



Registered
  23/02/2004
Points
  20
24th February, 2004 at 23:54:26 -

Is the 'always' condition fast enough to do that? Because... that's awesome =p

 
whoops

The Chris Street

Administrator
Unspeakably Lazy Admin

Registered
  14/05/2002
Points
  48488

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
25th February, 2004 at 06:51:04 -

Julian, you're almost right, but you dont need ini.

Just save the x position to a Global Value, and the y position to another Global Value. Do the same with the player direction and animation.

 
n/a

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
25th February, 2004 at 07:03:59 -

ugh, using inis is terrible especially if it's constant

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Mr.Mean



Registered
  22/08/2003
Points
  925
25th February, 2004 at 14:04:43 -

Daniel[Crazy_Productions] made an article about it a while ago http://www.create-games.com/article.asp?id=561

 
Some people are born to early, but I'm glad, I was born on my birthday
http://joNickart.tk

:JULI@N:



Registered
  14/07/2002
Points
  641
25th February, 2004 at 19:51:05 -

in tgf you need an ini, beacuse the windows are two separate games

 
n/a

:JULI@N:



Registered
  14/07/2002
Points
  641
25th February, 2004 at 19:53:07 -

or a textfile, like in kris article

Image Edited by the Author.

 
n/a

Mr Icekirby



Registered
  18/12/2003
Points
  846
25th February, 2004 at 22:48:26 -

i think it would be cool if you could pass variables to windows to share back and forth

 
Mr Icekirby says so!
OBEY ME!

Kramy



Registered
  08/06/2002
Points
  1888
26th February, 2004 at 17:28:19 -

I think you can using the global function object. Unfortunately, once that's in your app anyone can pass variables to that window(hence hacking it).

Player1SubApp sends x(320) y(240) to Player2SubApp
Player2SubApp adjusts position.

Hackprogram sends create shot to subapp
Hackprogram sends x(player2xpos + y(player2ypos) to Player2SubApp
*shot kills player 2*

 
Kramy

Mr Icekirby



Registered
  18/12/2003
Points
  846
26th February, 2004 at 17:36:54 -

you forgot to play animation "die"

 
Mr Icekirby says so!
OBEY ME!

Kramy



Registered
  08/06/2002
Points
  1888
26th February, 2004 at 17:45:23 -

My mistake

Hey, what looks better?
<('.'^) (^'.'^) (^'.')> <( )>
<('.'^) (^'.'^) (^'.')> <( . )>

 
Kramy
   

Post Reply



 



Advertisement

Worth A Click