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 / instance or clone object command

Author
Message
Heckno
20
Years of Service
User Offline
Joined: 8th Sep 2004
Location: Palm Coast, FL
Posted: 24th Oct 2004 17:31
I was trying to clone (or instance) an object multiple times using a for next loop to no avail.

Original and only (1) copy would appear - was trying to get 49ish copies of my grass object...

for grass = 2 to 50
clone object grass, 100 (100 is the original object #)
position object grass,x,0,y (x & y are random to prevent overlap)
next grass

any suggestions would be appreciated, ohh using dbpro
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 24th Oct 2004 19:14
This doesn't work?


Heckno
20
Years of Service
User Offline
Joined: 8th Sep 2004
Location: Palm Coast, FL
Posted: 25th Oct 2004 00:22
I didn't' save the test code from last night, but after copying and pasting your code it works fine......?

Why it wasn't working last night I have no idea - anyhow Thanks for setting me straight on this.....
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 25th Oct 2004 10:00
Glad its working. You run accross some wierd happenings with DBP sometimes.

Login to post a reply

Server time is: 2024-09-23 03:30:15
Your offset time is: 2024-09-23 03:30:15