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 / multi-programs

Author
Message
Phoenix4
21
Years of Service
User Offline
Joined: 5th Oct 2003
Location:
Posted: 6th Oct 2003 03:33
Is it possible to have two programs in DBPro running at the same time that do different stuff and act together as one program. For example have each of the two programs make a cube and move it around the screen and it's all happening on the screen at the same time?

position object MyFoot,object postion x(yourAss),object position y(yourAss),object position z(yourAss)
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 6th Oct 2003 05:33
You might be able to do it with the mulitplayer commands, I don't know as I haven't used them but I think it would be possible.
Or you could communicate between the two programs by having one program writing info to a file and the other program reading it and acting accordingly.
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 6th Oct 2003 06:11
Here is some code that uses a file to communicate one-way between two programs.

Run twice in windoed mode at a res low enough to fit the two programs on your desktop.

Use the arrow keys to rotate the cube with in the window with host=1 in.

click the code button below this post for code.
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 7th Oct 2003 23:36
This code does the same using multiplayer commands.

Login to post a reply

Server time is: 2024-11-25 11:29:35
Your offset time is: 2024-11-25 11:29:35