there will be two dice, each dice will have maximum of six dots, what i need is, i want the user to click on it and it should display in random images,
there will be two dice, each dice will have maximum of six dots, what i need is, i want the user to click on it and it should display in random images,
not clear. Click on what, the dots? the dice? something else? and where do you want to display random images... the dice?
A lot more info is needed. And the question should be clear if you want an accurate answer.
ok let me say clearly,
there will be two dice, when user click on those dice, the dots should be random in both the dices and with those output(random dots) i should move an object.
why not use 6 frames, with your six dots displays? Since i'm sure you'll display 5 in different spots than 6, it'll be simpler that way.
That same number can also be used in your other 'move' function.
then just generate a random number between 1 and 6, the send each dice timeline to that number.
Check Math.random in the live docs (link in my footer) for an example in creating that type of function.
As alternative, I've prepared a simple example wich attaches clips from the library according to a random dice number..
[dice clips are very basic (and 2D), however you can replace them with more realistic graphics -you have to keep the same names and linkage IDs (if replace them) in order for the code to work -you may of course modify the code to follow any new name conventions- ]
This mainly demonstrates a basic structure and how it works..
Regards!
Kostas
Last edited by Kostas Zotos; 05-23-2008 at 12:05 PM.