Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Splitscreen Problem!!!!

Ok... My Problem with the Splitscreen Script ( Demo is below this little text ) is, that i can´t toggle it ON or OFF.

Is there somwone who knows a way to switch it On / OFF ???


Ps.: I´m not at my Computer for a week now.... but..please answer...thx



DEMO --> SPLITSCREEN DEMOGAME
 

arev

Sponsor

Hey, I've been working on a split-screen for the last few days, but I've had some problems centering the second viewport. Would you mind if I use your script? ;p
Anyway, for the switching problem - so far I've only got an idea of doing this and haven't got the time to test it, but here it goes. First thing would be the sizes and coordinates of Spritesets - this could be done with a variable that could be changed in the game. Once it's changed I'd call a script $scene = Scene_Map.new so the Spritesets would be reinitialized with new values. alternate way is to create a copy of Scene_Map with only one Spriteset initialized, though it would also require changing its dimensions.

edit: OK, this didn't really worked. Half of it. I did make it work though. Here's how it's running:
I've created a copy of Game_Map (Game_Map2) with original parameters for one spriteset. I've made one more copy of Spriteset, and Game_Player, and a copy of Scene_Map, they have parameters like originals. In the title screen you can choose the number of players. If it's "1" then $game_player = Game_Player3.new (it's the original Game_Player class) and Scene_Map3 is being run (original Scene_Map but with Spriteset3). If you choose "2" players the game is run like in your demo. If I messed to much - tell me, I'll send you a demo :]
 
ok..that´s not a help for me..

I just need a way to switch the Script ON/OFF....


Why?

I make a snowboard game... But in the Story-Mode, i can´t need Splitscreen. But in the Main-Menu ( made on a map ), you can choose 2Player.

So i need a switching methode to switch the splitscreen thing off in the 1Plaer part...and ON in the 2Player Part.
 

Anonymous

Guest

-_- Oh my god. Okay I'm downloading it now ill tell you what you do.

Okay your split screen is under Scene_Map so what you do it copy this. And call it Scene_Map2 and activate Spriteset_Map2 there set Scene_Map to original. Now before everything starts add this...

if $game_switches 
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top