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 / Little Help With Beginning Book

Author
Message
Wamphyri
12
Years of Service
User Offline
Joined: 29th Jan 2012
Location:
Posted: 30th Jan 2012 01:17 Edited at: 30th Jan 2012 01:40
I have the Beginners Guide To Dark Basic Game Programming and I am currently going through it and I understand it so far till now.



I understand everything in this program but I don't understand why it draws more than one circle on the screen. Could someone please explain what it is I am missing. I realize there is a Do Loop in there but shouldnt it run till I hit the S key? Because it doesnt I thin it draws like maybe 7 or 8 circles till I hit i C again/
Wamphyri
12
Years of Service
User Offline
Joined: 29th Jan 2012
Location:
Posted: 30th Jan 2012 02:08
I have been going thru the Beginners Guide To DarK Basic Game Programming Book and have hit a piece of code I dont quite understand.



I understand everything in this except why Id doesn't continually draw circles till I hit 'c.
Hodgey
15
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 30th Jan 2012 08:42
Quote: "I don't understand why it draws more than one circle on the screen."

It draws multiple circles on the screen because while you are holding down the 'c' key, it will loop multiple times, meaning the same condition is true multiple times, resulting in multiple circles.

Login to post a reply

Server time is: 2024-11-23 23:29:39
Your offset time is: 2024-11-23 23:29:39