# Coding and Debugging Help

**URL:** https://forum.code.org/c/csd/debugging-help/393.md?page=4

[Latest](https://forum.code.org/latest.md) · [Categories](https://forum.code.org/categories.md) · [Tags](https://forum.code.org/tags.md)

**Page:** 5

---

## [Microbit blinking arron](https://forum.code.org/t/microbit-blinking-arron/39212)

<div class="topic-metadata">

**Author:** [@sanac2086](https://forum.code.org/u/sanac2086)\
**Replies:** 1\
**Last updated:** [March 28, 2024, 6:13pm UTC](https://forum.code.org/t/microbit-blinking-arron/39212 "2024-03-28T18:13:22Z")

</div>

can someone please help me make this kind of arrow in code.org beating heart

---

## [Unit 3 Lesson 28- Multiple Sprites to Displace](https://forum.code.org/t/unit-3-lesson-28-multiple-sprites-to-displace/39213)

<div class="topic-metadata">

**Author:** [@showe](https://forum.code.org/u/showe)\
**Replies:** 1\
**Last updated:** [March 26, 2024, 7:29pm UTC](https://forum.code.org/t/unit-3-lesson-28-multiple-sprites-to-displace/39213 "2024-03-26T19:29:23Z")

</div>

I have a student who created a game in unit 3 lesson 28 as a sumo wrestler game. He’s trying to get 2 different sprites to “displace” each other. The one works just fine but the other is not being displaced. The sprites …

---

## [Minimizing Code In The draw() Function](https://forum.code.org/t/minimizing-code-in-the-draw-function/39199)

<div class="topic-metadata">

**Author:** [@jwilson25](https://forum.code.org/u/jwilson25)\
**Replies:** 2\
**Last updated:** [March 26, 2024, 5:28pm UTC](https://forum.code.org/t/minimizing-code-in-the-draw-function/39199 "2024-03-26T17:28:46Z")

</div>

I understand that we want to keep the code in the draw() loop to a minimum. Does that mean that code like this: would be improved if it were written like this: I’m thinking it is better, but wondering what others …

---

## [Is there a way to upload multiple images at the same time in AppLab?](https://forum.code.org/t/is-there-a-way-to-upload-multiple-images-at-the-same-time-in-applab/39180)

<div class="topic-metadata">

**Author:** [@maurizio.boscaini](https://forum.code.org/u/maurizio.boscaini)\
**Replies:** 6\
**Last updated:** [March 23, 2024, 12:41am UTC](https://forum.code.org/t/is-there-a-way-to-upload-multiple-images-at-the-same-time-in-applab/39180 "2024-03-23T00:41:33Z")

</div>

Hi. is there any way to upload multiple images at the same time in AppLab. I know how to do it one at a time, but don’t see any way to load more than one. I want to create a quiz with the images of the flags of 193 natio…

---

## [Can anybody figure this out?](https://forum.code.org/t/can-anybody-figure-this-out/39179)

<div class="topic-metadata">

**Author:** [@rbowens2](https://forum.code.org/u/rbowens2)\
**Replies:** 2\
**Last updated:** [March 21, 2024, 4:03pm UTC](https://forum.code.org/t/can-anybody-figure-this-out/39179 "2024-03-21T16:03:28Z")

</div>

There are “birds” that are not showing, there hitboxes are very small but can still kill you. It randomly happens from to to time with no way of controlling it. I don’t know how to fix it.\[Debugging Help.\] (Game Lab -…

---

## ["Game Over" sound is looping](https://forum.code.org/t/game-over-sound-is-looping/39175)

<div class="topic-metadata">

**Author:** [@kmorris3](https://forum.code.org/u/kmorris3)\
**Replies:** 1\
**Last updated:** [March 21, 2024, 3:02am UTC](https://forum.code.org/t/game-over-sound-is-looping/39175 "2024-03-21T03:02:01Z")

</div>

Link to the project or level: (Game Lab - Code.org) What I expect to happen: I want the “Game Over” sound to play just once when the sprite goes off the screen What actually happens: The sound loops (sounds like a cr…

---

## [Stop sound looping / echoing in if/else statement](https://forum.code.org/t/stop-sound-looping-echoing-in-if-else-statement/39168)

<div class="topic-metadata">

**Author:** [@katelyn.prosnitz](https://forum.code.org/u/katelyn.prosnitz)\
**Replies:** 2\
**Last updated:** [March 20, 2024, 9:45pm UTC](https://forum.code.org/t/stop-sound-looping-echoing-in-if-else-statement/39168 "2024-03-20T21:45:12Z")

</div>

Help! I am working on CSD Unit 3 Lesson 18, creating an interactive card. I have an if/else statement inside the draw loop and want to play a sound when the mouse is down but I want the sound to stop when the mouse is no…

---

## [NaN Issues with Libraries](https://forum.code.org/t/nan-issues-with-libraries/39155)

<div class="topic-metadata">

**Author:** [@rklein](https://forum.code.org/u/rklein)\
**Replies:** 2\
**Last updated:** [March 19, 2024, 12:44pm UTC](https://forum.code.org/t/nan-issues-with-libraries/39155 "2024-03-19T12:44:49Z")

</div>

Link to the project or level: What I expect to happen: I am a first year teacher, and am having trouble explaining to my student the error that is resulting in a NaN console log output… What actually happens: Instea…

---

## [Nested For Loops](https://forum.code.org/t/nested-for-loops/39152)

<div class="topic-metadata">

**Author:** [@dharbold](https://forum.code.org/u/dharbold)\
**Replies:** 2\
**Last updated:** [March 15, 2024, 9:36pm UTC](https://forum.code.org/t/nested-for-loops/39152 "2024-03-15T21:36:33Z")

</div>

\[Posts in the debugging category need to have the following pieces of information included in order to help other teachers or our moderator team best help you. Feel free to delete everything in brackets before posting yo…

---

## [Sprite collisions and variables question](https://forum.code.org/t/sprite-collisions-and-variables-question/39147)

<div class="topic-metadata">

**Author:** [@bleowolf](https://forum.code.org/u/bleowolf)\
**Replies:** 3\
**Last updated:** [March 15, 2024, 8:23pm UTC](https://forum.code.org/t/sprite-collisions-and-variables-question/39147 "2024-03-15T20:23:53Z")

</div>

I have a student who is creating his own side scroller game in Lesson 21 of Unit 3 in CS discoveries. He has several sprites interacting but we are having some issues. We want to place limits on variables increasing so…

---

## [Simple solution for platform acts like an elevator in GameLab](https://forum.code.org/t/simple-solution-for-platform-acts-like-an-elevator-in-gamelab/39126)

<div class="topic-metadata">

**Author:** [@srogers1](https://forum.code.org/u/srogers1)\
**Replies:** 1\
**Last updated:** [March 8, 2024, 2:43pm UTC](https://forum.code.org/t/simple-solution-for-platform-acts-like-an-elevator-in-gamelab/39126 "2024-03-08T14:43:38Z")

</div>

I am trying to create a platform that lowers from sprite.y = 100 to sprite.y =300, once it hits sprite.y= 300, it reverses direction and then returns back to sprite = 100 Best method. Trying to do in-game lab with code…

---

## [Order of Shapes and Sprites And Text](https://forum.code.org/t/order-of-shapes-and-sprites-and-text/39118)

<div class="topic-metadata">

**Author:** [@jwilson25](https://forum.code.org/u/jwilson25)\
**Replies:** 2\
**Last updated:** [March 8, 2024, 3:46am UTC](https://forum.code.org/t/order-of-shapes-and-sprites-and-text/39118 "2024-03-08T03:46:28Z")

</div>

I just want to make sure I am not wrong when I tell students there is no way to code this project so the “windows” that are drawn with the rect and ellipse commands appear to be behind the monkey when it rises up from th…

---

## [Animation in 3rd background will not change](https://forum.code.org/t/animation-in-3rd-background-will-not-change/39123)

<div class="topic-metadata">

**Author:** [@troy](https://forum.code.org/u/troy)\
**Replies:** 1\
**Last updated:** [March 7, 2024, 7:32pm UTC](https://forum.code.org/t/animation-in-3rd-background-will-not-change/39123 "2024-03-07T19:32:15Z")

</div>

This student cant get the background to change for the 3rd background in her game project? Any idea how to help?

---

## [Play sound in code.org unit 3 lesson 14](https://forum.code.org/t/play-sound-in-code-org-unit-3-lesson-14/39093)

<div class="topic-metadata">

**Author:** [@joell.boast](https://forum.code.org/u/joell.boast)\
**Replies:** 1\
**Last updated:** [March 1, 2024, 10:25pm UTC](https://forum.code.org/t/play-sound-in-code-org-unit-3-lesson-14/39093 "2024-03-01T22:25:20Z")

</div>

My students are wanting to use sounds but they repeat the sound before it completes. I am not understanding the support document for this, can anyone help me solve and teach this problem for my students?

---

## [Audio only working 50%](https://forum.code.org/t/audio-only-working-50/39048)

<div class="topic-metadata">

**Author:** [@azurirou](https://forum.code.org/u/azurirou)\
**Replies:** 1\
**Last updated:** [February 23, 2024, 11:20pm UTC](https://forum.code.org/t/audio-only-working-50/39048 "2024-02-23T23:20:24Z")

</div>

I have a function that would make sound for walking left and right. \*\*|Column 1 | Column 2 | Column 3 | Column 4| \*\* \*\*|— | — | — | —| \*\* \*\*| | What happens | Expect this to happen | pass| \*\* \*\*|SHIFT then A | pla…

---

## [Wrapping text with 4th and 5th parameters](https://forum.code.org/t/wrapping-text-with-4th-and-5th-parameters/39057)

<div class="topic-metadata">

**Author:** [@jennifer.hemry](https://forum.code.org/u/jennifer.hemry)\
**Replies:** 2\
**Last updated:** [February 23, 2024, 4:27pm UTC](https://forum.code.org/t/wrapping-text-with-4th-and-5th-parameters/39057 "2024-02-23T16:27:28Z")

</div>

Link to the project or level: (Game Lab - Code.org) \*\*What I expect to happen:\*\*We expected the text to wrap What actually happens: The text is not wrapping What I’ve tried: I have tried Googling code.org text wrappin…

---

## [createSprite() Question](https://forum.code.org/t/createsprite-question/39019)

<div class="topic-metadata">

**Author:** [@jwilson25](https://forum.code.org/u/jwilson25)\
**Replies:** 2\
**Last updated:** [February 12, 2024, 3:12pm UTC](https://forum.code.org/t/createsprite-question/39019 "2024-02-12T15:12:34Z")

</div>

I am a little confused by createSprite(). Should this code: produce the same results as this code: Because it does not. What am I not understanding here? Thanks, John

---

## [Collision with background sprite not working](https://forum.code.org/t/collision-with-background-sprite-not-working/39015)

<div class="topic-metadata">

**Author:** [@roconnel](https://forum.code.org/u/roconnel)\
**Replies:** 1\
**Last updated:** [February 9, 2024, 4:44pm UTC](https://forum.code.org/t/collision-with-background-sprite-not-working/39015 "2024-02-09T16:44:28Z")

</div>

I have a student who is trying to recreate a pac man game. She’s using a background maze sprite. I’ve been tinkering with it and can’t seem to make it work. Link to the project or level: https://studio.code.org/projec…

---

## [Direction Screen](https://forum.code.org/t/direction-screen/39004)

<div class="topic-metadata">

**Author:** [@cathie\_gillner](https://forum.code.org/u/cathie_gillner)\
**Replies:** 1\
**Last updated:** [February 8, 2024, 12:25pm UTC](https://forum.code.org/t/direction-screen/39004 "2024-02-08T12:25:47Z")

</div>

In Game Lab my student is trying to make two screens to explain directions. When he presses A he wants the startscreen directions to disappear instead of having to hols A to see the directions. Thanks for any idead.

---

## [Lesson 21 in Unit 3. I cannot get the frog to loop](https://forum.code.org/t/lesson-21-in-unit-3-i-cannot-get-the-frog-to-loop/38999)

<div class="topic-metadata">

**Author:** [@celowe](https://forum.code.org/u/celowe)\
**Replies:** 1\
**Last updated:** [February 7, 2024, 9:36pm UTC](https://forum.code.org/t/lesson-21-in-unit-3-i-cannot-get-the-frog-to-loop/38999 "2024-02-07T21:36:58Z")

</div>

I have checked this with the example answer and I cannot see what I did wrong. I need another pair of eyes to help me! There is the link to what I currently have.

---

## [Create Simple Timer with App Lab](https://forum.code.org/t/create-simple-timer-with-app-lab/38996)

<div class="topic-metadata">

**Author:** [@avankley](https://forum.code.org/u/avankley)\
**Replies:** 1\
**Last updated:** [February 7, 2024, 1:01pm UTC](https://forum.code.org/t/create-simple-timer-with-app-lab/38996 "2024-02-07T13:01:24Z")

</div>

I have a student who wants to make a simple timer that you can set anywhere from 1 min to 30 minutes. Is there a basic way to set this up in app lab? Any help is appreciated!

---

## [Sprite not appear or moving when background changes](https://forum.code.org/t/sprite-not-appear-or-moving-when-background-changes/38993)

<div class="topic-metadata">

**Author:** [@roconnel](https://forum.code.org/u/roconnel)\
**Replies:** 1\
**Last updated:** [February 6, 2024, 4:38pm UTC](https://forum.code.org/t/sprite-not-appear-or-moving-when-background-changes/38993 "2024-02-06T16:38:40Z")

</div>

I have a student that is having the aforementioned issues. I have recreated the issue and I can’t seem to find the solution. \*\*What I expect to happen: They have a “front” screen that tells the player to hit space b…

---

## [Why is my second song bugged?](https://forum.code.org/t/why-is-my-second-song-bugged/38977)

<div class="topic-metadata">

**Author:** [@svflake](https://forum.code.org/u/svflake)\
**Replies:** 1\
**Last updated:** [February 2, 2024, 4:50am UTC](https://forum.code.org/t/why-is-my-second-song-bugged/38977 "2024-02-02T04:50:39Z")

</div>

(Code.org) What I expect to happen: I expected the second song to play when I got over 5 points. What actually happens: It sounds like it is scrambled. What I’ve tried: I have created a variable for the sound, I also …

---

## [Unit 8 (AI) Lesson 1 Stage 9 Drop down menus don’t work on apple ipads](https://forum.code.org/t/unit-8-ai-lesson-1-stage-9-drop-down-menus-don-t-work-on-apple-ipads/38952)

<div class="topic-metadata">

**Author:** [@lisa.sinanan](https://forum.code.org/u/lisa.sinanan)\
**Replies:** 3\
**Last updated:** [January 29, 2024, 5:46am UTC](https://forum.code.org/t/unit-8-ai-lesson-1-stage-9-drop-down-menus-don-t-work-on-apple-ipads/38952 "2024-01-29T05:46:22Z")

</div>

HTTPS://studio.code.org/projects/app lab/Bwp6d\_lkZOZHQmXIFxhAWsDUe6r5NDQhs61xmf6U6Yk?sms=true I expect the drop-down menus to work. They do not work at all on my student’s apple i-pads (no mouse clicks - is this the iss…

---

## [Find and replace in Game Lab](https://forum.code.org/t/find-and-replace-in-game-lab/38940)

<div class="topic-metadata">

**Author:** [@abramss](https://forum.code.org/u/abramss)\
**Replies:** 3\
**Last updated:** [January 25, 2024, 4:29am UTC](https://forum.code.org/t/find-and-replace-in-game-lab/38940 "2024-01-25T04:29:24Z")

</div>

When using random numbers I’d like to find all occurrences of 10 and replace them with a 400, for example. I can use ctrl-f for find but ctrl-r does not work for replace. Is there a keyboard shortcut or feature to use fi…

---

## [Sprite doesn't appear](https://forum.code.org/t/sprite-doesnt-appear/38942)

<div class="topic-metadata">

**Author:** [@jfranksa.sh](https://forum.code.org/u/jfranksa.sh)\
**Replies:** 2\
**Last updated:** [January 24, 2024, 8:59pm UTC](https://forum.code.org/t/sprite-doesnt-appear/38942 "2024-01-24T20:59:43Z")

</div>

I have a transfer that until now has been using scratch to code. I am not familiar with scratch, but it looks like most of his skills have transferred. I can’t figure out why the ball sprite won’t show up here. I appr…

---

## [Coding Help Family Feud Game](https://forum.code.org/t/coding-help-family-feud-game/38939)

<div class="topic-metadata">

**Author:** [@jcostanza](https://forum.code.org/u/jcostanza)\
**Replies:** 1\
**Last updated:** [January 24, 2024, 5:28pm UTC](https://forum.code.org/t/coding-help-family-feud-game/38939 "2024-01-24T17:28:22Z")

</div>

Good morning, My student is trying to create a Family Feud like game where the user can enter the answer and the text input turns green after it checks and determines the correct answer has been chosen. I’m not sure if…

---

## [Use a button multiple times for different tasks](https://forum.code.org/t/use-a-button-multiple-times-for-different-tasks/38931)

<div class="topic-metadata">

**Author:** [@msmith2](https://forum.code.org/u/msmith2)\
**Replies:** 2\
**Last updated:** [January 23, 2024, 7:31pm UTC](https://forum.code.org/t/use-a-button-multiple-times-for-different-tasks/38931 "2024-01-23T19:31:57Z")

</div>

Is there a way to use the same button for multiple tasks? For example, I have a student that wants to show different images every time a button is clicked. Or, the first click hide a text box, second click play a sound…

---

## [Set an oval collider in Unit 3/Game Lab](https://forum.code.org/t/set-an-oval-collider-in-unit-3-game-lab/38915)

<div class="topic-metadata">

**Author:** [@hayest](https://forum.code.org/u/hayest)\
**Replies:** 3\
**Last updated:** [January 19, 2024, 5:38pm UTC](https://forum.code.org/t/set-an-oval-collider-in-unit-3-game-lab/38915 "2024-01-19T17:38:44Z")

</div>

Link to the project or level: Code.org What I expect to happen: Change collider type to an oval by selecting a “circle” collider type, and setting a width/radius AND height. What actually happens: ERROR: Line: 6: TypeE…

---

## [Score Issues in Game Lab](https://forum.code.org/t/score-issues-in-game-lab/38917)

<div class="topic-metadata">

**Author:** [@thelma.johnson](https://forum.code.org/u/thelma.johnson)\
**Replies:** 1\
**Last updated:** [January 18, 2024, 8:08pm UTC](https://forum.code.org/t/score-issues-in-game-lab/38917 "2024-01-18T20:08:15Z")

</div>

The following is a link from a student who is having issues with the score populating. 7th Grade Video Game Project in Game Lab. Thanks, \*\*Link to the project or level:\*\*Game Lab - Code.org What I expect to happen: F…

[Previous page](https://forum.code.org/c/csd/debugging-help/393.md?page=3)

[Next page](https://forum.code.org/c/csd/debugging-help/393.md?page=5)
