Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Splitting the screen

Author
Message
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 27th Dec 2007 22:50
Hey guys!

I`m working on a multi player game WITHOUT Internet. just me and my friend sitting next to each other and playing with the keyboard and joystick.

Is it possible to split the screen into TWO cameras, each independent of another, each steared by their own device?

thanks!

Oooooops!!! I accidentally formated drive c.
KYP
20
Years of Service
User Offline
Joined: 5th May 2005
Location: 01110000
Posted: 28th Dec 2007 00:13
I think TDK's the only one who's figured out an effective way of doing it. Try forum-searching "split screen"


A signature has modded your eraser because of it's many resolutions.
Wait, that's not right...
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 28th Dec 2007 03:32 Edited at: 29th Dec 2007 00:14
The premise is fairly simple, use the set camera view command:



You have to control the camera positioning and rotation as well in each view so that the perspective is from the relative player.



Enjoy your day.
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 28th Dec 2007 09:13
That works, but every camera you synchronize, the program gets slower. And you have a flashing effect.

But good thinking anyway!

Oooooops!!! I accidentally formated drive c.
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 28th Dec 2007 09:26 Edited at: 28th Dec 2007 09:27
I looked at your code, and know how I can make it work without flashing or anything:




What do you guys think?

By taking the sync command away, it runs smoothly. But, will that effect the other objects playing in the game?

Oooooops!!! I accidentally formated drive c.
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 28th Dec 2007 10:37
Interesting... I get no flashing. If I remove the syncs, I get nothing at all. The sync in the do loop isn't necessary but seems to be for the subroutines. If I remove the sync on, I see all the drawing and redrawing of the camera views (flashing?). When you copied the code and ran it are you sure you copied the sync on at the top?

Enjoy your day.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 28th Dec 2007 15:47
There is a command called fast sync. I think it allows "syncing individual Cameras - then you do ONE REAL sync at bottom of loop.

Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 28th Dec 2007 15:53 Edited at: 28th Dec 2007 16:02
Quote: "There is a command called fast sync."

That's a DBP command

I don't get any flickering but does this help?


jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 28th Dec 2007 16:07 Edited at: 28th Dec 2007 16:11
Quote: "Interesting... I get no flashing."


I guess you have a better version of Darkbasic. I still have DarkBasic v1.13 and dont know how to upgrade to v1.2 without paying for it.

No, the new updated version is still flashing.

Oooooops!!! I accidentally formated drive c.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 28th Dec 2007 17:35
(Should of asked for it as a christmas gift)

I know its not cheap - but I bet you get more hours out of it than most games you might buy! Consider saving up for it. Begging parents sometimes works if you live at home (still) etc.

I think its worth it - but - I really like it... alot... enough to pay.... and buy add ons and buy 3rd party stuff and ... GET MY WIFE ANGRY

Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 29th Dec 2007 00:28
@TheComet
Well, I reran the example in 1.13 and you are right, it flashes like crazy. I messed around with the syncs and removing them like you said stopped the flashing - I don't get it! I also repositioned them because it's always been my experience that the camera view didn't update properly without them... I'm still a little baffled. But here's the version with them rewritten for 1.13 As I test more things between 1.2 and 1.13 there are a lot of little differences that aren't evident. I'm really weirded out about the sync...



Enjoy your day.
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 29th Dec 2007 00:42
@Latch
I'm convinced sync never worked properly in v1.13

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 29th Dec 2007 22:10
Isn`t there a way to upgrade to v1.2? I mean, you can`t just buy the version 1.13 and then 3 years later you can`t upgrade to the next version. That`s robbery!

Oooooops!!! I accidentally formated drive c.
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 29th Dec 2007 22:18
Quote: "Isn`t there a way to upgrade to v1.2? I mean, you can`t just buy the version 1.13 and then 3 years later you can`t upgrade to the next version. That`s robbery!"

No, 'cuz there's free updates on the 'Updates' section of the DB part of the website all the time!
Except now, there's some problem with the installer. TDK assures us it'll all be done soon.


Sudoku arts, the rabi and Nancy DrewG
Pixelator
17
Years of Service
User Offline
Joined: 8th Jul 2007
Location: here
Posted: 30th Dec 2007 00:52
Quote: "No, 'cuz there's free updates on the 'Updates' section of the DB part of the website all the time!
Except now, there's some problem with the installer. TDK assures us it'll all be done soon."


just what i was going to say...


Maryville Game Developers
Visit our website at http://www.freewebs.com/maryville-game-developers/index.htm
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 31st Dec 2007 17:59
Aha, Now it`s clear. Thanks, guys!

Does anyone know when the installer is repaired?

Oooooops!!! I accidentally formated drive c.
Pixelator
17
Years of Service
User Offline
Joined: 8th Jul 2007
Location: here
Posted: 31st Dec 2007 18:22
nope - it is a big mystery...


Maryville Game Developers
Visit our website at http://www.freewebs.com/maryville-game-developers/index.htm

Login to post a reply

Server time is: 2025-06-02 09:41:55
Your offset time is: 2025-06-02 09:41:55