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 hide objects?

Author
Message
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 26th Oct 2003 19:11
Hello.

I'm writing a multi-player split-screen game that has each player (upto 4) using a different camera to view the game world.

What I want is to hide certain objects from some of the players but not all, so HIDE OBJECT is no good for me because that would hide the objects from every camera.

Is there anyway to show an object only in one (or two, or three) cameras and hide it in the rest?

Thank you.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 26th Oct 2003 19:24
There's no way to do that directly that I can think of.

Here's a suggestion - recreate the environment once for each player and keep them out of each others camera range. So you could have everything for player 1 basic on y-coords of 0 to 10000, player 2 at 10000 to 20000, and objects for player 1 of 1 to 1000, plater 2 of 1001 to 2000 etc

It's a bit of a management nightmare I'm afraid
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 26th Oct 2003 23:13
That sounds like a hell of a lot of work for what is essentially a very small part of the game.

Thanks for your help but I think I will go for the lower quality option and try using sprites for the semi-hidden objects instead.

Not an ideal solution but if it looks OK then it will certainly be easier to impliment.

Thanks

Login to post a reply

Server time is: 2025-06-04 18:11:19
Your offset time is: 2025-06-04 18:11:19