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 Discussion / How should I do multiple moving and acting objects?

Author
Message
bunghole
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Finland
Posted: 3rd Mar 2004 08:53
How can I use... Hmm, how do I say it in english...
Like when you put different x's,y's and z's in the same, like:
xx=135,45,37: yy=83,29,55...
Or how to do it?
I'm so not putting them one by one...
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 3rd Mar 2004 09:23
I don't fully understand what you're after, but if you want to store multiple values under the one variable name, use a function...

so, instead of having;
x# = 20.0

use;
Dim x#(5)
x#(1) = 20.0
x#(2) = 3.5
x#(3) = 56.9 And so on...

Hope I Helped...
Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
bunghole
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Finland
Posted: 3rd Mar 2004 09:44
Thanx, you got the idea!
I believe, that it helped. Can't try it yet, cuz now in school, but after that, the coding moves on with the FPS.
bunghole
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Finland
Posted: 3rd Mar 2004 09:47

I SHOULD have figured that out myself.
...but thanks though...
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 3rd Mar 2004 12:39
Alrighty, glad to have helped...

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy

Login to post a reply

Server time is: 2025-05-23 09:16:10
Your offset time is: 2025-05-23 09:16:10