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 / Move object with arrow keys - help with my code.

Author
Message
Carsen
17
Years of Service
User Offline
Joined: 10th Feb 2007
Location: Idaho
Posted: 10th Apr 2007 06:21
Hello TheGameCreators community I am new and recently purchased the online version of DBP and was just trying to make a simple "model viewer" and need help with the following code -



I know it is wrong some how but what I am trying for it to do is move the object right if I press the right arrow key same with the left and up and down.

Thanks,
Carsen

Elddem The MMORPG - DarkBasic Pro Development
Tom J
19
Years of Service
User Offline
Joined: 4th Aug 2005
Location: Essex, England
Posted: 10th Apr 2007 11:31
You're using the INPUT command for the wrong thing. You need to use an IF statement instead:



Visit GamingColosseum Web - http://www.gamingc.co.nr/
Veron
17
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 10th Apr 2007 12:43
Yeah, the INPUT command allows the user to enter text, it can be used to let a player enter their name, or type stuff in. Think of it as a text editor function! (Although it does have other uses)


Carsen
17
Years of Service
User Offline
Joined: 10th Feb 2007
Location: Idaho
Posted: 10th Apr 2007 15:31
Hmm alright ya thanks I just couldn't really find much documentation on Keyboard input stuff.

Thanks,
Carsen

Elddem The MMORPG - DarkBasic Pro Development
Tom J
19
Years of Service
User Offline
Joined: 4th Aug 2005
Location: Essex, England
Posted: 10th Apr 2007 17:17
Try Help > Commands > Input > About 1/2 way down the page.

There is a list of keyboard and joystick input commands

Visit GamingColosseum Web - http://www.gamingc.co.nr/
Carsen
17
Years of Service
User Offline
Joined: 10th Feb 2007
Location: Idaho
Posted: 11th Apr 2007 03:28
Ya I saw that however it didn't help me much not sure why but thank you for helping, I learned two things how to program keys and how to fix my model viewer

Thanks,
Carsen

Elddem The MMORPG - DarkBasic Pro Development

Login to post a reply

Server time is: 2024-09-25 21:21:10
Your offset time is: 2024-09-25 21:21:10