2 player / Split Screen Game

Post here your demos and examples with the source files.
Forum rules
Always post the games with a screenshot.
The file must have the ged and data files (complete game source)
Use the forum attachment to post the files.
It is always better to use the first post to put the game files

Re: 2 player / Split Screen Game

Postby Kalladdolf » Fri Feb 15, 2008 9:37 am

well, then just replace the two canvas with one :roll:
and that should have a centerview which stays always in the middle point between the two players.
when they leave the view, back to normal again!
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: 2 player / Split Screen Game

Postby Bee-Ant » Fri Feb 15, 2008 9:39 am

You just mouthfull
Show me that you can make it
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: 2 player / Split Screen Game

Postby edh » Fri Feb 15, 2008 10:36 am

I don't see what the difficulty is; anymore than the one actor game request.
User avatar
edh
 
Posts: 233
Joined: Thu Sep 13, 2007 12:17 am
Location: Maine, USA
Score: 14 Give a positive score

Re: 2 player / Split Screen Game

Postby Bee-Ant » Fri Feb 15, 2008 10:43 am

Ouu...so my request make you stress huh???
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: 2 player / Split Screen Game

Postby speckford123 » Sat Feb 16, 2008 2:41 am

ok, sorry i havnt replied recently
as for having 2 screens becoming 1, well you could put a third canas for the ful screen
when the distance is so small disable the first 2 and activate the third and vice-versa

if im not too busy i might get around to making it, but if someone comes up with it, post it to benifit others
..............and me cause im lazy :D
speckford123
 
Posts: 334
Joined: Fri May 05, 2006 6:33 pm
Score: 49 Give a positive score

Re: 2 player / Split Screen Game

Postby DilloDude » Sat Feb 16, 2008 2:58 am

If you are just having one screen, why do you need a canvas? You could just move the view to the actual location. Of course, getting the transition to be smooth would be difficult.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Re: 2 player / Split Screen Game

Postby Bee-Ant » Sat Feb 16, 2008 4:18 am

I meant...if both players are near each other (the distance of player 1 and 2 not more than original view size)...there's no split screen..
But, if far each other (the distance of player 1 and 2 more than original view size)..there will be splitscreen. Do you understand...
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: 2 player / Split Screen Game

Postby DilloDude » Sat Feb 16, 2008 5:55 am

Exactly. If the distance between the two players is small enough, move the view to centre hal-way between them. If not, move the view to where the canvas actors are, and draw each screen on them.
The only thing is, it could get confusing when it suddenly changes from split-screen to single-screen.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Re: 2 player / Split Screen Game

Postby Bee-Ant » Sat Feb 16, 2008 7:40 am

It could get confusing when it suddenly changes from split-screen to single-screen.

That's why I asked for you...I'm still confused how to do it :roll:
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: 2 player / Split Screen Game

Postby DilloDude » Sat Feb 16, 2008 9:18 am

I've just thought of another brilliant idea! Each player has a 'virtual view' point, whether it is an actor, or just stored variables, doesn't matter, it just needs to have a coordinate. The player sets its virtual view point to either centred on itself or between itself and the other player, but moves between those two points smoothly with some sort of smooth move code. The canvas actors then draw everything as usual, but relative to the virtual view point. That should create some sort of smooth merging effect.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Re: 2 player / Split Screen Game

Postby Bee-Ant » Sat Feb 16, 2008 9:20 am

Sound interesting...but wait...do you know how to remove "SHAKE" effect when you use canvas???
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: 2 player / Split Screen Game

Postby speckford123 » Sat Feb 16, 2008 2:26 pm

yeah....the shake effect......i think that happens because of your gravity and collision
you might be able to remove it by if they are on the ground disable gravity,
that should make it so the canvas wont draw the shakes.........but that could cause more problems.......
speckford123
 
Posts: 334
Joined: Fri May 05, 2006 6:33 pm
Score: 49 Give a positive score

Re: 2 player / Split Screen Game

Postby Game A Gogo » Sat Feb 16, 2008 11:03 pm

I think it's because his gravity factor is like, 1.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: 2 player / Split Screen Game

Postby Bee-Ant » Sun Feb 17, 2008 4:08 am

So...canvas has it's own weakness...but yeah i think make disable the gravity when collide with platform is the best way...
I hope makslane remove this shake effect later
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: 2 player / Split Screen Game

Postby DilloDude » Sun Feb 17, 2008 5:33 am

Try this:
SplitScreenMerge.zip
(69.31 KiB) Downloaded 196 times

You still get the 'shake' effect, and it dosn't always line up correctly, but apart from that, it's pretty nice.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

PreviousNext

Return to Game Demos

Who is online

Users browsing this forum: No registered users and 1 guest

cron