# I need great help with debugging Python code

**URL:** <https://forum.makecode.com/t/i-need-great-help-with-debugging-python-code/28861>\
**Category:** Help\
**Tags:** game, art\
**Created:** [May 22, 2024, 3:30am UTC](https://forum.makecode.com/t/i-need-great-help-with-debugging-python-code/28861 "2024-05-22T03:30:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zapfish](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/zapfish/32/15394_2.png) [@zapfish](https://forum.makecode.com/u/zapfish)\
**Post date:** [May 22, 2024, 3:30am UTC](https://forum.makecode.com/t/i-need-great-help-with-debugging-python-code/28861/1 "2024-05-22T03:30:33Z")

</div>

I’m currently coding a game, and I converted it from blocks to Python, and I’m **struggling** to find the 7 problems. I’ve managed to fix one, but that one was by luck. Any chances on helping me out? I also need help with sprite positioning. I manage to get one sprite, that was goofing up, where I want it to be, but as soon as I added other sprites, the positioning decides to goof up again. The sprite acting up is named **“Cade.”**

**-zapfish**

**Code** - [https://arcade.makecode.com/S33497-18279-22508-63669](https://arcade.makecode.com/S33497-18279-22508-63669)

---

<div class="post-metadata">

**Author:** ![Mastermind](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@Mastermind](https://forum.makecode.com/u/Mastermind)\
**Post date:** [May 24, 2024, 3:28pm UTC](https://forum.makecode.com/t/i-need-great-help-with-debugging-python-code/28861/2 "2024-05-24T15:28:32Z")

</div>

Hi! I’m not a great coder, but I hope I can help. It looks like all of your problems stem from characterAnimations.loopFrames on line 2233. You never close the function after the 300, which then messes up the on\_forever function below it. If Make Code says the function doesn’t exist, you may not have the character animations extension downloaded. Finally, if you have the extension and have closed the function with a parenthesis, you must include a rule to define when to loop those animations.  
I hope this helps!
