The Daily Click ::. Forums ::. Klik Coding Help ::. Best way of making split screens currently?
 

Post Reply  Post Oekaki 
 

Posted By Message

JetpackLover



Registered
  01/03/2007
Points
  212
15th January, 2011 at 13:05:36 -

I've made split screen using sub application but I came up against a wall when it comes to laying out the levels. Am I supposed to duplicate the level tiles for both screens or is there something I'm not understanding?

So yeah I don't want to do that. So what is the best/efficient way of making split screens? Is there some fancy shader way of pulling off by using MMF HWA?

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
15th January, 2011 at 18:44:47 -

I haven't tried any new methods since HWA however the best way I know to do split screen is using the Sub-application object. It basically lets you run frames within levels. So you could basically have two frames running at the same time, of the same level, interacting with each other to send player information to each other and place a object representing the players location, animations, actions, etc. Seems inefficient by todays standards but then again, this is how I did it back when MMF 1.5 was still king.

However I'm sure theres a far better way now and the first extension that comes to mind would be the viewport object. However I have never experimented with this yet so I don't quite know. Anyone else?

 
http://www.facebook.com/truediamondgame

JetpackLover



Registered
  01/03/2007
Points
  212
17th January, 2011 at 16:42:28 -

The problem with the sub app method is it nearly doubles the amount of memory used. And that's why I'm hoping there is a more efficient way.

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


Alonso Martin



Registered
  29/12/2010
Points
  294
17th January, 2011 at 23:00:25 -

You could probably use the viewport extension to display other areas of the screen.

 
www.hfalicia.com
www.alonsomartin.mx

JetpackLover



Registered
  01/03/2007
Points
  212
18th January, 2011 at 01:10:03 -

If it's a scrolling game how could it be possible to scroll one half of the screen separate from the other using viewport?

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


Fifth

Quadruped

Registered
  07/05/2003
Points
  5815

VIP MemberGOTW JULY 2010 WINNER!Kliktober Special Award TagGOTW HALLOWEEN 2011 WINNERPicture Me This Round 51 Winner!
18th January, 2011 at 01:13:22 -

Nah, last I checked, the viewport object can't display anything outside of the regular field of view. It's just not rendered, I guess.

 
Go Moon!

Alonso Martin



Registered
  29/12/2010
Points
  294
18th January, 2011 at 03:26:59 -

There was a way of doing it with the Viewport extension. I think you'd need to render the whole frame as the screen and on top of it upscale the viewport "screens". This is probably very inefficient. Perhaps you could try working with Looki's Surface object. Instead of rendering the level through MMF, you could do it through this object (and it's very fast). I'm sure I've seen examples in the clickteam fora.

Edited by Alonso Martin

 
www.hfalicia.com
www.alonsomartin.mx

~Matt Esch~

Stone Goose

Registered
  30/12/2006
Points
  870

VIP Member
7th February, 2011 at 14:13:27 -

Advanced users can achieve a split screen with OpenGL, as you can have a real viewport by re-rendering the scene in a different perspective. I have suggested in the past that clickteam add this feature to the HWA version of MMF, but I am yet to see any developments. You really have to know what you are doing though, and all of your sprites would have to be rendered in OpenGL.

 
http://create-games.com/project.asp?id=1875 Image

   

Post Reply



 



Advertisement

Worth A Click