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 / unique object id using a loop

Author
Message
new comer
18
Years of Service
User Offline
Joined: 14th Jan 2006
Location:
Posted: 16th Jan 2006 17:59
Hi guy s , i m trying to get an unique id for my objects , so i can check there position individually ...

here is my code.. i know my problem is to give an unique id inside my loop , but i cant figure it out.

Thx for your precious help
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 17th Jan 2006 20:40 Edited at: 17th Jan 2006 20:40
source is screwed. why does everyone use it? well anyways. use the code brackets:

[*code] [*/code] (take out the stars.)



[href]http://snowfall.homestead.com [/href]
smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 17th Jan 2006 21:14
u want something like;



that what your looking for?

life's one big game
new comer
18
Years of Service
User Offline
Joined: 14th Jan 2006
Location:
Posted: 17th Jan 2006 22:38
thx smallg !

Here is the way i did it . i m trying now to print object position using a loop....

ps:and yes code container does n t work !!
smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 18th Jan 2006 15:18


that what u want?

p.s. please use code box, we can't see your source code until you have been approved.

life's one big game
new comer
18
Years of Service
User Offline
Joined: 14th Jan 2006
Location:
Posted: 18th Jan 2006 17:42
hum...i m not sure in fact .i ve used an array to put object positions inside a loop.

let s say you randomly create n objects ,you display your n objects then you want each box to change is color (or wathever) when you roll your mouse over this object .For this i need the object position and his index number.Imagine you want to play a memorie games like old funky mattel Simon.You have a sequence of colors playing and you have to remember the sequence.The sequence go more and more complex and you brain start to warm...this is what i want to do. i m sure it s simple for normal brain i m not a coder i m just an humble 3d artist who is fascinated by programming.

www.hopeland.co.uk
new comer
18
Years of Service
User Offline
Joined: 14th Jan 2006
Location:
Posted: 18th Jan 2006 17:49
Smallg what the exact procedure to add my code , i m always pasting the code in the code box , i ve tried to add before pasting but nothing so far..i really want to show you my code and to others but i cant !!!!..lol.Do you it s because i m a new user and have not been approve by the Krypton Judges !! anyway thanks for your help.

Maddle.

Login to post a reply

Server time is: 2024-11-27 07:30:21
Your offset time is: 2024-11-27 07:30:21