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 / Input in 3D environment??

Author
Message
Go Devils
13
Years of Service
User Offline
Joined: 13th Aug 2012
Location:
Posted: 8th Nov 2012 19:21
I would like to be able to input variable values during 3D game play. My objective is to allow the user to enter the object number, and then a set of xyz corrdinates and move the object once the values are entered.

I understand the input command, but when I try to use it the screen goes all funny. Any ideas?
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 8th Nov 2012 23:13
after reading few times your "question"
i understood that you have to learn a lot about dynamic arrays and dynamic vars.

dynamic arrays - this is a start for you on your problem. make a research about them on this forums.

Advanced Updater for your games!
Dar13
18
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 9th Nov 2012 02:04
Quote: "after reading few times your "question"
i understood that you have to learn a lot about dynamic arrays and dynamic vars.

dynamic arrays - this is a start for you on your problem. make a research about them on this forums"

That has nothing to do with what he wants to do. Absolutely nothing.

Unfortunately, I haven't had the need to make such a system for any of my games(though I do know that TheComet has). Perhaps you can find a post by TheComet and he can might be able to help you out.

Go Devils
13
Years of Service
User Offline
Joined: 13th Aug 2012
Location:
Posted: 9th Nov 2012 04:18
I should clarify this a little. The system that I'm working on is a game environment set-up program. The objective is to load an object, texture it, and place it on the terrain.

What I want to be able to do, while the program is running, is to enter an object number and a new set of XYZ values so I can move the object and reposition it without having to stop the program, change the values in the code, and then recompile and run the program again to see what happened.

I would simply write a sub routine that would move the object to its new location based upon the values input, and then make fine adjustments as needed.

This system will not be a part of the finished game, but a tool to help me create the game. Make sense?????
Andrew_Neale
16
Years of Service
User Offline
Joined: 3rd Nov 2009
Location: The Normandy SR-2
Posted: 9th Nov 2012 10:01
See if this helps at all.



The 'input' command is almost always unusable really. The 'entry$()' command handles this much better. If you have any questions or problems with the example then please let me know.


Previously TEH_CODERER.
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 9th Nov 2012 11:37 Edited at: 9th Nov 2012 11:38
Quote: "The 'input' command is almost always unusable really."


Definately. It is just a command line mechanism for shell applications, not for modern games. Using Andrew_Neale's entry system or perhaps a GUI plugin would be a better idea.

Go Devils
13
Years of Service
User Offline
Joined: 13th Aug 2012
Location:
Posted: 10th Nov 2012 01:14
Hi Chris and Andrew

Andrew, thanks for the code. I'll play with it this weekend and let you know.

Thanks

Login to post a reply

Server time is: 2026-07-10 18:11:20
Your offset time is: 2026-07-10 18:11:20