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 / array question

Author
Message
Shay3000
17
Years of Service
User Offline
Joined: 7th Sep 2007
Location:
Posted: 12th Aug 2008 22:07 Edited at: 12th Aug 2008 22:12
when making and using arrays to store data

how do u duplicate objects and position them in
an array just curious

i wish u guys had this in your program

Box2=Load Mesh "",1

instead of

load mesh "",1

im taking a model called box.x and trying to duplicate it and position it in a array plus change colors etc

Shay3000
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 12th Aug 2008 22:12 Edited at: 12th Aug 2008 22:13
well you can have this

Box2=1
load mesh "",Box2 .

Dark Physics makes any hot drink go cold.
Shay3000
17
Years of Service
User Offline
Joined: 7th Sep 2007
Location:
Posted: 12th Aug 2008 23:26
Quote: "well you can have this

Box2=1
load mesh "",Box2 .

"


I'll give it a try thanks dude

Shay3000
Nano brain
16
Years of Service
User Offline
Joined: 7th May 2008
Location:
Posted: 13th Aug 2008 01:14 Edited at: 13th Aug 2008 01:15
Or...



This is the closest you get to the 'feel' of objects as handles in DBP.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 13th Aug 2008 13:32
that was fun machines having a go slow day.

Right how Selet works here some code.




inside the do loop there is a variable named SmallIntegerVariable which has an random value put in it from 0 to 3.

now if SmallIntegerVariable = 1 the the words hello A will be printed to the screen for 2 hello B and for 3 hello C, if the value is 0 then Hello Anything Else gets printed.



same again but now using letters you could had monday and as long as the input is the same as the checking answer then it will pass.

play with the above and see how you get on.

Dark Physics makes any hot drink go cold.

Login to post a reply

Server time is: 2024-09-27 18:15:23
Your offset time is: 2024-09-27 18:15:23