# Issue with my codes ¨ chance ¨ of something happening

**URL:** <https://forum.makecode.com/t/issue-with-my-codes-chance-of-something-happening/33518>\
**Category:** Help\
**Created:** [January 31, 2025, 10:50pm UTC](https://forum.makecode.com/t/issue-with-my-codes-chance-of-something-happening/33518 "2025-01-31T22:50:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carlos](https://avatars.discourse-cdn.com/v4/letter/c/ecae2f/32.png) [@Carlos](https://forum.makecode.com/u/Carlos)\
**Post date:** [January 31, 2025, 10:50pm UTC](https://forum.makecode.com/t/issue-with-my-codes-chance-of-something-happening/33518/1 "2025-01-31T22:50:01Z")

</div>

![download - 2025-01-31T113151.831](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/e/7/e7911bdc59a8648604468ffbf7fd2f136a072c63.jpeg)  
I was hoping someone knew how to make it so that when you get the egg as the player, it disables inputs for a specific time, and then lets you move when the egg ¨hatches¨ after a specific amount of time. can someone help?

---

<div class="post-metadata">

**Author:** ![Gl125371](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gl125371/32/29131_2.png) [@Gl125371](https://forum.makecode.com/u/Gl125371)\
**Post date:** [January 31, 2025, 10:56pm UTC](https://forum.makecode.com/t/issue-with-my-codes-chance-of-something-happening/33518/2 "2025-01-31T22:56:48Z")

</div>

You can use the pause. block, which pauses the whole game. After the pause block, use “set mySprite image to img” and replace img with your character image.

---

<div class="post-metadata">

**Author:** ![CodeOnTheCob](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codeonthecob/32/19306_2.png) [@CodeOnTheCob](https://forum.makecode.com/u/CodeOnTheCob)\
**Post date:** [February 2, 2025, 9:24pm UTC](https://forum.makecode.com/t/issue-with-my-codes-chance-of-something-happening/33518/3 "2025-02-02T21:24:46Z")

</div>

no instead add an animation of the egg cracking and then it will open

---

<div class="post-metadata">

**Author:** ![CodeOnTheCob](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codeonthecob/32/19306_2.png) [@CodeOnTheCob](https://forum.makecode.com/u/CodeOnTheCob)\
**Post date:** [February 2, 2025, 9:24pm UTC](https://forum.makecode.com/t/issue-with-my-codes-chance-of-something-happening/33518/4 "2025-02-02T21:24:50Z")

</div>

welcome
