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 / Wall problem

Author
Message
tubeular cube face
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location:
Posted: 23rd Sep 2005 20:24
So heres the problem I want to create a program where You as a little sphere walk around and there are lots of walls and you can't go through them so and there are going to be lots of walls like a maze so I want to get the codeing so that I only have to type three lines of code per wall however I ran my program and it work with one wall but when I added more it did not can some body tell me why and how to fix it.
My code is below.

Tubeularcubeface
Leeorg
19
Years of Service
User Offline
Joined: 5th Jul 2005
Location:
Posted: 23rd Sep 2005 21:15
please post your code using the <code> button located to the top right of the POST FORUM MESSAGE Box. Your source cannot be accessed!
gpex
19
Years of Service
User Offline
Joined: 29th May 2005
Location:
Posted: 23rd Sep 2005 22:39
what leeorg said, and maybe try to clarify some of the grammar in your post. It's kind of confusing at times.

CodingCom Test Site...check it out!!!
http://www.codingcom.150m.com
tubeular cube face
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location:
Posted: 23rd Sep 2005 23:43
Ok here it is



Tubeularcubeface
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 24th Sep 2005 07:55
You don't want 3 lines per wall. What you want is a for/next loop or do/loop that repeats those 3 lines as many times as you need. Otherwise your code will reach to the moon.
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 24th Sep 2005 17:25
tubeular cube face:

Also, get into the habit of indenting your code early on. When your programs grow in size, you'll find them MUCH easier to follow and a lot quicker to find errors.

TDK_Man

tubeular cube face
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location:
Posted: 24th Sep 2005 19:19
Yeah but why dosen't it actualy work

Tubeularcubeface

Login to post a reply

Server time is: 2024-09-24 05:26:27
Your offset time is: 2024-09-24 05:26:27