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.

DarkBASIC Professional Discussion / Variables on the fly?

Author
Message
Rob
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: Ireland
Posted: 15th Oct 2002 14:33
How would you create variables on the fly?



How would I be able to rename the col variable everytime we go through the loop?
eg. col1, col2, col3 etc.
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 15th Oct 2002 16:09
You cant - thats where arrays come in :

for x=0 to 1000
col(x)=object collision(1,i)
next x

Yes, I really am THAT good...
Rob
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: Ireland
Posted: 15th Oct 2002 18:26
Thanks That works well

Login to post a reply

Server time is: 2024-03-29 13:39:13
Your offset time is: 2024-03-29 13:39:13