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.

Newcomers DBPro Corner / split-screen

Author
Message
Hippie Dude
19
Years of Service
User Offline
Joined: 6th Feb 2005
Location: California, United States
Posted: 17th Sep 2005 05:52
I'm making a two player game but how can I cut the screen in half with both cameras?

Mysteries Surround You
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Hippie Dude
19
Years of Service
User Offline
Joined: 6th Feb 2005
Location: California, United States
Posted: 17th Sep 2005 06:02
I'm using DBPro.

Mysteries Surround You
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 17th Sep 2005 07:05
OK, this demo works in DBC, but may not work properly in DB Pro. It was written a long time ago and I don't have time to convert it.

If it doesn't work properly, the code is commented enough for you to see how the split screen side of things works and implement the method into your own program.

http://www.computechtenerife.com/2screens.rar

TDK_Man

Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 17th Sep 2005 15:20
Actually, when using DBPro, you can create multiple camera's using the 'make camera nr' command. Using the 'set camera view nr,x,y,x2,y2' you can set the camera view of all camera's you created.
note that camera 0 is the default camera



Immunity and Annihalation makes Immunihalation...
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 17th Sep 2005 15:47 Edited at: 17th Sep 2005 15:47
Yes - Sven is perfectly correct.

I answered this at 5am just before going to bed and as I was nodding off to sleep it suddenly dawned on me that there were multiple cameras in DBPro, (which I use very rarely)!

I was too tired to get up, switch on the machine and edit the post.

Doh! Sorry about that...

On the bright side, that's how you do it in DBC with a single camera!

TDK_Man

Hippie Dude
19
Years of Service
User Offline
Joined: 6th Feb 2005
Location: California, United States
Posted: 17th Sep 2005 18:35
thanks

Mysteries Surround You
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 18th Sep 2005 19:32
http://forum.thegamecreators.com/?m=forum_view&t=54874&b=11

-Xol


DBpro IonRay IDE: Demo 0.1.0.0 available!

Login to post a reply

Server time is: 2024-09-24 05:30:50
Your offset time is: 2024-09-24 05:30:50