# Infinitely spawning sprites Issue for Viking Game

**URL:** https://forum.makecode.com/t/infinitely-spawning-sprites-issue-for-viking-game/32001
**Category:** Help
**Tags:** extension, game
**Created:** [November 26, 2024, 5:41pm UTC](https://forum.makecode.com/t/infinitely-spawning-sprites-issue-for-viking-game/32001 "2024-11-26T17:41:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![BarryBenson923](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@BarryBenson923](https://forum.makecode.com/u/BarryBenson923)
#### Post date: [November 26, 2024, 5:41pm UTC](https://forum.makecode.com/t/infinitely-spawning-sprites-issue-for-viking-game/32001/1 "2024-11-26T17:41:10Z")

</div>

When I try to run my menu function on start and press play, it starts infinitely spawning dragons and longships. However, when i just run Game Function, everything is fine. Can someone figure out where I have messed up? Together, we can round out this issue as efficiently and effectively as possible. Thanks for your time.

---

<div class="post-metadata">

### Author: ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)
#### Post date: [November 27, 2024, 7:52am UTC](https://forum.makecode.com/t/infinitely-spawning-sprites-issue-for-viking-game/32001/2 "2024-11-27T07:52:23Z")

</div>

Can you share the link to your game? Appreciate it.

---

<div class="post-metadata">

### Author: ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)
#### Post date: [November 28, 2024, 6:46pm UTC](https://forum.makecode.com/t/infinitely-spawning-sprites-issue-for-viking-game/32001/3 "2024-11-28T18:46:22Z")

</div>

I’m not sure what’s wrong without the code… did you put the command in an infinite loop?
