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 / First Prgoram (Having problems with input) PLZ HELP

Author
Message
Stedders
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location:
Posted: 12th Oct 2003 14:59
Hey Guys,

I Dark Basic PRO yesterday and I've been having a fiddle and it's kinda cool .

The problem I have is that I was building a program to teach me about Display and Input, the program consists of a red box at the bottom of the screen that's cotrolled by the Left & Right keys.

Unfortunatley when I press Left only the left side moves and when I press Right only the right side moves, which is kind of funny to watch .

Anyway thanks for the help in advance, much appreciated.

Stedders

PS. Sorry if the code's sloppy, first program and everything.

Are Games getting worse or our standards getting higher?
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 12th Oct 2003 15:10
The underlying code is correct - your problem is that you are not removing the previous box from the display before drawing another box on top of it.

Try putting a CLS command immediately after the DO command and it'll work
Stedders
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location:
Posted: 12th Oct 2003 15:27
Cheers.

Quote: "Try putting a CLS command immediately after the DO command and it'll work"


Worked a treat.

Stedders

Are Games getting worse or our standards getting higher?

Login to post a reply

Server time is: 2024-11-25 13:17:33
Your offset time is: 2024-11-25 13:17:33