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 Professional Discussion / How do you start coding a split screen camera(s) view ?

Author
Message
Keemo1000
20
Years of Service
User Offline
Joined: 26th May 2005
Location: 28th Dimension
Posted: 16th Oct 2005 15:36
I only know you need 2 cameras , but how do u position 1 on top and 1 below , and after i position them , how do i make something like a dividor in the middle of the screen to (split) it ?

Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 16th Oct 2005 15:38
Never having done this, I'd imagine you'd use bitmaps for the cameras, copy them (possibly scale them) paste them onto bitmap 0 (the screen) and if you want to draw a divider, just use 'box' or some funky 2d graphic.
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 16th Oct 2005 16:01
or 'use set camera view' but it stretches the screen so it will look squashed if you have 2 screens.


Keemo1000
20
Years of Service
User Offline
Joined: 26th May 2005
Location: 28th Dimension
Posted: 16th Oct 2005 16:39
erm , how about if i use sync ?

Keemo1000
20
Years of Service
User Offline
Joined: 26th May 2005
Location: 28th Dimension
Posted: 16th Oct 2005 19:03
please help and post !

Drew Cameron
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: Scotland
Posted: 16th Oct 2005 19:43
Set camera view #,0,0,320,400 etc...

Use this to set where the camera appears on screen. Like: how much of the screen it fills. Then use

Set camera aspect #

And fiddle with that to stop it being "squished".

Katie and Drew return!!!

The ARRAYinator
19
Years of Service
User Offline
Joined: 13th Aug 2005
Location:
Posted: 16th Oct 2005 19:48
This is the code I use for split screen cameras. Hope it helps!



make camera 1
set camera aspect 1,2
set camera view 1,0,0+(300*1),800,300+(300*1)

make camera 2
set camera aspect 2,2
set camera view 2,0,0+(300*2),800,300+(300*2)
Keemo1000
20
Years of Service
User Offline
Joined: 26th May 2005
Location: 28th Dimension
Posted: 16th Oct 2005 21:07
thanks , looking forward to play dumbo and Mr cool

but one more question , is there a command to check if object is colidiing with the terrain or not ?

Login to post a reply

Server time is: 2025-06-04 18:01:57
Your offset time is: 2025-06-04 18:01:57