# Fishy Fishy Cross my Ocean!

**URL:** <https://forum.makecode.com/t/fishy-fishy-cross-my-ocean/4769>\
**Category:** Show & Tell\
**Tags:** game\
**Created:** [December 2, 2020, 11:14pm UTC](https://forum.makecode.com/t/fishy-fishy-cross-my-ocean/4769 "2020-12-02T23:14:13Z")\
**Posts on this page:** 5\
**Page:** 2

<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:** [August 19, 2022, 6:04pm UTC](https://forum.makecode.com/t/fishy-fishy-cross-my-ocean/4769/23 "2022-08-19T18:04:06Z")

</div>

While I’m doing expensive computations, I update variables and pause a teensy bit and then a render-on-z-index will draw the stuff in the variables. I need to pause in order for the render function to actually render.

---

<div class="post-metadata">

**Author:** ![Sonicblaston](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sonicblaston/32/19164_2.png) [@Sonicblaston](https://forum.makecode.com/u/Sonicblaston)\
**Post date:** [August 19, 2022, 6:46pm UTC](https://forum.makecode.com/t/fishy-fishy-cross-my-ocean/4769/24 "2022-08-19T18:46:49Z")

</div>

Eeeehm. Could you explain it a little easier? (I’m not smart🫠)

---

<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:** [August 22, 2022, 3:02pm UTC](https://forum.makecode.com/t/fishy-fishy-cross-my-ocean/4769/25 "2022-08-22T15:02:27Z")

</div>

Try reading the code, there isn’t much to it!

Basically, while I’m computing the paths for the fish I will update a variable with the percentage complete. A block from `arcade-sprite-utils` called render on Z index allows us to draw to the screen like an image, so if we are loading then I draw the loading stuff!

---

<div class="post-metadata">

**Author:** ![Sonicblaston](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sonicblaston/32/19164_2.png) [@Sonicblaston](https://forum.makecode.com/u/Sonicblaston)\
**Post date:** [August 22, 2022, 4:26pm UTC](https://forum.makecode.com/t/fishy-fishy-cross-my-ocean/4769/26 "2022-08-22T16:26:50Z")

</div>

Thanks 😃

---

<div class="post-metadata">

**Author:** ![jackal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jackal/32/19506_2.png) [@jackal](https://forum.makecode.com/u/jackal)\
**Post date:** [August 23, 2022, 7:35pm UTC](https://forum.makecode.com/t/fishy-fishy-cross-my-ocean/4769/27 "2022-08-23T19:35:36Z")

</div>

loading screen got me FLABBERGASTED. wow.

[Previous page](https://forum.makecode.com/t/fishy-fishy-cross-my-ocean/4769.md?page=1)
