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 / Problem with make object

Author
Message
Dark Angela
22
Years of Service
User Offline
Joined: 8th Jul 2003
Location: United States
Posted: 5th Aug 2003 02:19 Edited at: 5th Aug 2003 02:23
Every time that I run this code the matrix is made but the boxes don't show up. Maybe it's something I am over looking.Maybe someone can point out where I went wrong.
Dark Angela
22
Years of Service
User Offline
Joined: 8th Jul 2003
Location: United States
Posted: 5th Aug 2003 02:24 Edited at: 5th Aug 2003 02:26
Sorry Code didn't show.


Function MakeWall(max_x,max_y,size)
boxs=500:
for z=0 to max_y-1:
for x=0 to max_x-1:
if map$(x,z)="x":box_x=x*size
box_y=y*size
newbox=boxs+1
make object box newbox,box_x,50,box_y
Position object newbox,x,0,z
boxs=newbox
endif
next x
next z
Endfunction
UnderLord
22
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 5th Aug 2003 03:13
Function MakeWall(max_x,max_y,size)

did you actually try to put numbers into the max_x and max_y as well as the size there? maybe trying that will work for you

http://www.freewebs.com/independant
Dark Angela
22
Years of Service
User Offline
Joined: 8th Jul 2003
Location: United States
Posted: 5th Aug 2003 03:45
Thanks. I found the problem.

Login to post a reply

Server time is: 2026-07-06 16:25:37
Your offset time is: 2026-07-06 16:25:37