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 / Something isnt working

Author
Message
Dark Basic Pro Enthusiast
12
Years of Service
User Offline
Joined: 8th Nov 2013
Location:
Posted: 19th Mar 2014 16:14 Edited at: 20th Mar 2014 15:57
Something is wrong in my game. I have these boxes and use these rotate cubes to make the boxes red letters a-v rotate there own cube. all of them are working except when its up and down please help. HINT(you need two long lines to make a cube light up red)
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 19th Mar 2014 16:59
Code tags.. You should use them.

Highlight all your code, then press the code button.



Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 19th Mar 2014 23:51 Edited at: 20th Mar 2014 00:04
Program issues aside, a little advice here:

Instead of if inkey$()="s" or inkey$()="S"

You could use if upper$(inkey$())="S" or if lower$(inkey$())="s"

Even better, with the SCANCODE() command you can map your entire keyboard:



And the KEYSTATE() command will return a 1 or 0 for any SCANCODE() being used, even simultaneously.

Also, you might want to look into CASE, ENDCASE and ENDSELECT instead of using all those IF/END IF statements.

666GO†O666
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 20th Mar 2014 01:11
And indent it sensibly.



Powered by Free Banners
Dark Basic Pro Enthusiast
12
Years of Service
User Offline
Joined: 8th Nov 2013
Location:
Posted: 20th Mar 2014 16:17 Edited at: 20th Mar 2014 16:21

here is the code the parts that aren't working are
1,10 for 7
2,11 for 8
3,12 for 9
and so on and so forth is there a reason why?

Login to post a reply

Server time is: 2026-07-07 11:20:53
Your offset time is: 2026-07-07 11:20:53