# I am trying to develop a game- getting stuck in rolling the dice

**URL:** <https://forum.code.org/t/i-am-trying-to-develop-a-game-getting-stuck-in-rolling-the-dice/32749>\
**Category:** Coding and Debugging Help\
**Created:** [June 1, 2020, 4:52pm UTC](https://forum.code.org/t/i-am-trying-to-develop-a-game-getting-stuck-in-rolling-the-dice/32749 "2020-06-01T16:52:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aarushcoachingclasse](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@aarushcoachingclasse](https://forum.code.org/u/aarushcoachingclasse)\
**Post date:** [June 1, 2020, 4:52pm UTC](https://forum.code.org/t/i-am-trying-to-develop-a-game-getting-stuck-in-rolling-the-dice/32749/1 "2020-06-01T16:52:13Z")

</div>

Need your help and permission: Hi,  
I have developed this game Roll a robot.

> **[Check out what I made](https://studio.code.org/projects/gamelab/JsEQHCEeNosrZKTuNwlyu_mJGet9uwZ47FJpC5bSE8g)**
>
> I wrote the code myself with Code.org

i need one help…how do i do …if i click on dice then a number should be shown, then again if i click on dice another number shows and again when i click another number shows…how do i do this…pls pls help me.

Also this game idea i have taken from internet but game i have developed on my own …Can i put it on my youtube channel?

Rules of the game:  
if 1 comes you put antenna  
if 2 comes you put head  
if 3 comes you put body  
if 4 comes you put legs  
if 5 comes you put right arm  
if 6 comes you put left arm  
if all the body parts are arranged you win.

Regards  
Lipika Sharma

---

<div class="post-metadata">

**Author:** ![mwood](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mwood/32/4941_2.png) [@mwood](https://forum.code.org/u/mwood)\
**Post date:** [June 1, 2020, 7:22pm UTC](https://forum.code.org/t/i-am-trying-to-develop-a-game-getting-stuck-in-rolling-the-dice/32749/2 "2020-06-01T19:22:36Z")

</div>

@aarushcoachingclasse,  
I took a quick look at your project. It looks like you’re off to a good start.

It looks like your next step according to your question is to get your dice working. Right now, when I look at your animation tab, I only see one image of a die (with one dot). You will need to get images of all six sides. Then, you will need to use some math commands (randomNumber) to pick the number and then have the correct animation show up.

Here’s a sample project with some functioning dice if you want to look at what someone else has done.

> **[Check out what I made](https://studio.code.org/projects/gamelab/Xcdwf2cu59HPDdpHuTGVnLpSz6Fsz-fbBNf5epgcsyg/view)**
>
> I wrote the code myself with Code.org

Hope this helps get you started!

Mike
