Hello there, I am another newbie posting here looking for some help. I have gone through many of the tutorials and have thoroughly enjoyed and appreciated the help of the collective here in the forums. I am finally starting a real app and am having some difficulties finding any source information related to dice rolling. Basically one aspect would be to have dice roll on part of the screen once done rolling the face of the dice would then be “read”. For example: If one dice after rolling is a 4 and the other is a 6 the sum of the two would be stored for use. I tried to ensure I had a full explanation here, but am certain like many other newb’s here I will get responses like WTF, we need more info. Unfortunately I have been unable to even conceptualize this enough to have good code. Any help anyone could give me to point me in the right direction would be so appreciated. Thank you!! [import]uid: 15962 topic_id: 15429 reply_id: 315429[/import]
are you after the GUI bit of dice rolling or the logic part of handling multiple dice rolling?
I might just put up a tutorial on the later, soon.
cheers,
?
[import]uid: 3826 topic_id: 15429 reply_id: 57024[/import]
JayantV,
Thank you for your quick response! I am more interested in the logic part of the dice roll. I will be eagerly awaiting your tutorial, thanks to you and all the other contributors here on the forums. I know Corona SDK would probably never get and retain newer users without the aid and assistance from selfless people like yourself. It is nice to know there is somewhere to go when needing help. [import]uid: 15962 topic_id: 15429 reply_id: 57099[/import]
This is very simple.
All you need to do is generate a random number between 0 and 6. Then just play the animation for each one so if the random number is 1 then you play animation 1 that would show the dice 1 :D.
Hope it helps. [import]uid: 22223 topic_id: 15429 reply_id: 57108[/import]