# The Grennanator v1.0

**URL:** <https://forum.makecode.com/t/the-grennanator-v1-0/4991>\
**Category:** Arcade\
**Tags:** game\
**Created:** [December 14, 2020, 4:30pm UTC](https://forum.makecode.com/t/the-grennanator-v1-0/4991 "2020-12-14T16:30:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chohen](https://avatars.discourse-cdn.com/v4/letter/c/258eb7/32.png) [@chohen](https://forum.makecode.com/u/chohen)\
**Post date:** [December 14, 2020, 4:30pm UTC](https://forum.makecode.com/t/the-grennanator-v1-0/4991/1 "2020-12-14T16:30:00Z")

</div>

> **[The Grennanator v1.0](https://arcade.makecode.com/01805-69916-85504-35242)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

  
hi this is my first game please leave feedback on it thankyou

---

<div class="post-metadata">

**Author:** ![Wanna\_be\_coder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/wanna_be_coder/32/2667_2.png) [@Wanna\_be\_coder](https://forum.makecode.com/u/Wanna_be_coder)\
**Post date:** [December 14, 2020, 7:28pm UTC](https://forum.makecode.com/t/the-grennanator-v1-0/4991/2 "2020-12-14T19:28:58Z")

</div>

This game seems cool. I suggest you add some sort of rule or instructions, also looking at the code , I think you should make the boss randomly spawn because currently the boss spawns every 5 seconds. Finally the name caught my eye, I love the Grennanator.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/6/64469b0326ab7bc946a37dd368fc751fde44aaca.png)

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [December 14, 2020, 7:34pm UTC](https://forum.makecode.com/t/the-grennanator-v1-0/4991/3 "2020-12-14T19:34:52Z")

</div>

That won’t do it - if `random` returns 6789, then it will delay for 6789 seconds every time. You should put that code in a `forever` block and put the `random` block in a pause.

---

<div class="post-metadata">

**Author:** ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)\
**Post date:** [December 14, 2020, 8:59pm UTC](https://forum.makecode.com/t/the-grennanator-v1-0/4991/4 "2020-12-14T20:59:34Z")

</div>

The time that is set in the ‘on game update every’ is fixed. So each time you play a new game, it will be random, but fixed for the current game session. An alternative to spawning a sprite at a random period of time, is to set a variable = ‘game time since start’ + random time. Then in a normal game update, you check that variable is less than the ‘game time since start’, spawn the enemy and set the variable again. For example:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/3/39e8109d61c766a4405a393bb3fa5a84aea876fe.png)

> **[Spawn after random period](https://arcade.makecode.com/09394-72577-89445-29934)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.
