# Coding and Debugging Help

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

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

**Page:** 4

---

## [Sprite not turning invisible](https://forum.code.org/t/sprite-not-turning-invisible/39962)

<div class="topic-metadata">

**Author:** [@SkyhawkLilly](https://forum.code.org/u/SkyhawkLilly)\
**Replies:** 1\
**Last updated:** [October 12, 2024, 12:31am UTC](https://forum.code.org/t/sprite-not-turning-invisible/39962 "2024-10-12T00:31:09Z")

</div>

Trying to make a loading screen, the code should display the OS Logo for a second and a half before making it invisible. The visibility variable in my monitor shows it as false, but it does not disappear on the screen. I…

---

## [Student Creating a Game Help](https://forum.code.org/t/student-creating-a-game-help/39899)

<div class="topic-metadata">

**Author:** [@jreckner](https://forum.code.org/u/jreckner)\
**Replies:** 2\
**Last updated:** [September 29, 2024, 10:53pm UTC](https://forum.code.org/t/student-creating-a-game-help/39899 "2024-09-29T22:53:17Z")

</div>

I have a student in one of my classes designing a game. He is having some trouble with what is described below. I took a look at it and tried to help him, but was unable to get to the root to the issue. Any help is appre…

---

## [Unit 3 Lesson 7 Robot Face](https://forum.code.org/t/unit-3-lesson-7-robot-face/39858)

<div class="topic-metadata">

**Author:** [@koliner](https://forum.code.org/u/koliner)\
**Replies:** 3\
**Last updated:** [September 23, 2024, 5:21pm UTC](https://forum.code.org/t/unit-3-lesson-7-robot-face/39858 "2024-09-23T17:21:22Z")

</div>

I have offered to students that they remix their Robot Face and put it in a draw functions if they have included Random Number ranges for at least one of their variables. Why is this project not animating? I am stumped! …

---

## [Showing Score on screen](https://forum.code.org/t/showing-score-on-screen/37174)

<div class="topic-metadata">

**Author:** [@skschiltz](https://forum.code.org/u/skschiltz)\
**Replies:** 5\
**Last updated:** [September 23, 2024, 5:14pm UTC](https://forum.code.org/t/showing-score-on-screen/37174 "2024-09-23T17:14:58Z")

</div>

I have a student who is creating a game. He would like the score to show on the screen. Is there a way to do this in Game Lab?

---

## [CS Discoveries - Unit 3 Lesson 12](https://forum.code.org/t/cs-discoveries-unit-3-lesson-12/39826)

<div class="topic-metadata">

**Author:** [@bgallagher](https://forum.code.org/u/bgallagher)\
**Replies:** 2\
**Last updated:** [September 18, 2024, 5:47pm UTC](https://forum.code.org/t/cs-discoveries-unit-3-lesson-12/39826 "2024-09-18T17:47:15Z")

</div>

Link to the project or level: \[replace with link to the curriculum or get the “Share” link to a project \[Game Lab - Code.org\] What I expect to happen: \[The student was trying to set a random interval for the size of the…

---

## [Unit 2 Lesson 12 page 5](https://forum.code.org/t/unit-2-lesson-12-page-5/39801)

<div class="topic-metadata">

**Author:** [@timothy\_lau](https://forum.code.org/u/timothy_lau)\
**Replies:** 1\
**Last updated:** [September 13, 2024, 7:25pm UTC](https://forum.code.org/t/unit-2-lesson-12-page-5/39801 "2024-09-13T19:25:21Z")

</div>

For the lesson, when it calls for using the space-around and space between tags, its not doing anything for me within the align-content tag

---

## [AppLab Like things](https://forum.code.org/t/applab-like-things/39723)

<div class="topic-metadata">

**Author:** [@em4044](https://forum.code.org/u/em4044)\
**Replies:** 2\
**Last updated:** [September 1, 2024, 8:27pm UTC](https://forum.code.org/t/applab-like-things/39723 "2024-09-01T20:27:39Z")

</div>

I want app-lab but its widescreen, anything thats like this?

---

## [Unit 2 Lesson 12.6A - Flexbox exemplar](https://forum.code.org/t/unit-2-lesson-12-6a-flexbox-exemplar/39667)

<div class="topic-metadata">

**Author:** [@stephanie.pendley](https://forum.code.org/u/stephanie.pendley)\
**Replies:** 2\
**Last updated:** [August 22, 2024, 1:07pm UTC](https://forum.code.org/t/unit-2-lesson-12-6a-flexbox-exemplar/39667 "2024-08-22T13:07:33Z")

</div>

Unit 2 Lesson 12.6A Inverserd Properties Link to the project or level: https://codeprojects.org/projects/weblab/WorFTI7AgLlGkIPWj2a7RL4b1ZDpDteGbZDYVJaOnIA (this is the exemplar code) What I expect to happen: I expect…

---

## [Why can't we randomize tint?](https://forum.code.org/t/why-cant-we-randomize-tint/39675)

<div class="topic-metadata">

**Author:** [@jfranksa.sh](https://forum.code.org/u/jfranksa.sh)\
**Replies:** 1\
**Last updated:** [August 19, 2024, 8:30pm UTC](https://forum.code.org/t/why-cant-we-randomize-tint/39675 "2024-08-19T20:30:52Z")

</div>

Link to the project or level: Game Lab - Code.org What I expect to happen: Starting on line 32 there is a conditional that changes the tint of the flower sprite when the bottle sprite is clicked. Student wants to rando…

---

## [App Lab code not working](https://forum.code.org/t/app-lab-code-not-working/39670)

<div class="topic-metadata">

**Author:** [@e.fat](https://forum.code.org/u/e.fat)\
**Replies:** 1\
**Last updated:** [August 15, 2024, 10:22am UTC](https://forum.code.org/t/app-lab-code-not-working/39670 "2024-08-15T10:22:38Z")

</div>

Hi, I am planning to share this app template with my students for them to work on for the project. I have done the basic code. However when I click on run it starts to homepage and when I click on the button it does not…

---

## [How to make a sprite appear multiple times](https://forum.code.org/t/how-to-make-a-sprite-appear-multiple-times/39570)

<div class="topic-metadata">

**Author:** [@jlegatt](https://forum.code.org/u/jlegatt)\
**Replies:** 3\
**Last updated:** [June 27, 2024, 10:29pm UTC](https://forum.code.org/t/how-to-make-a-sprite-appear-multiple-times/39570 "2024-06-27T22:29:45Z")

</div>

I am making a game where a ship fires missiles at aliens. Each time the player presses space, a new missile appears, but the old one disappears, so the player can only have one missile on the screen at a time. My code …

---

## [Unit 3, Lesson 27: Student Project not working](https://forum.code.org/t/unit-3-lesson-27-student-project-not-working/39524)

<div class="topic-metadata">

**Author:** [@langilla1](https://forum.code.org/u/langilla1)\
**Replies:** 2\
**Last updated:** [May 31, 2024, 10:45pm UTC](https://forum.code.org/t/unit-3-lesson-27-student-project-not-working/39524 "2024-05-31T22:45:33Z")

</div>

I can not figure out why my students game is not working. (Game Lab - Code.org) She wants the game to start with the startGame function and then the score should go up by one when the dog moves the baby pigs. After a …

---

## [Loop does not restart after end of level](https://forum.code.org/t/loop-does-not-restart-after-end-of-level/39522)

<div class="topic-metadata">

**Author:** [@mzima](https://forum.code.org/u/mzima)\
**Replies:** 1\
**Last updated:** [May 30, 2024, 6:21pm UTC](https://forum.code.org/t/loop-does-not-restart-after-end-of-level/39522 "2024-05-30T18:21:10Z")

</div>

I’m having another issue with this game in that after the player dodges the first set of obstacles, the game stops and the loop does not repeat. I don’t believe it’s crashing because it’s very consistent, as soon as the …

---

## [Make Your Own Game - Jumping issues](https://forum.code.org/t/make-your-own-game-jumping-issues/39508)

<div class="topic-metadata">

**Author:** [@kabraham](https://forum.code.org/u/kabraham)\
**Replies:** 1\
**Last updated:** [May 24, 2024, 3:20pm UTC](https://forum.code.org/t/make-your-own-game-jumping-issues/39508 "2024-05-24T15:20:24Z")

</div>

Student is trying to make the bunny jump - having problems. Could fresh eyes take a look? Thanks! https://studio.code.org/projects/gamelab/0Vw-kNK2xBJUYuzFBa3zJchaQQYg11eYr40nTmsdNKE

---

## [Unit 6: Scrolling Background in App Lab](https://forum.code.org/t/unit-6-scrolling-background-in-app-lab/39502)

<div class="topic-metadata">

**Author:** [@jcharpentier](https://forum.code.org/u/jcharpentier)\
**Replies:** 1\
**Last updated:** [May 24, 2024, 3:09pm UTC](https://forum.code.org/t/unit-6-scrolling-background-in-app-lab/39502 "2024-05-24T15:09:14Z")

</div>

My class is working on unit 6 for circuits. This student is trying to make his background image scrollable. We can do it in in Game Lab, but it is to working in App Lab. Any advice? Link to the project or level: \[re…

---

## [U3 L28 Design a Game Help - clicking and changing backgrounds](https://forum.code.org/t/u3-l28-design-a-game-help-clicking-and-changing-backgrounds/39499)

<div class="topic-metadata">

**Author:** [@msima](https://forum.code.org/u/msima)\
**Replies:** 1\
**Last updated:** [May 24, 2024, 2:25pm UTC](https://forum.code.org/t/u3-l28-design-a-game-help-clicking-and-changing-backgrounds/39499 "2024-05-24T14:25:45Z")

</div>

Need some help with a student’s project and I’m not sure how to help him. Thank you very much in advance for anyone who can give some input on how to get these backgrounds clickable and displaying only one background at …

---

## [Lesson 26 Level 13d -Game Over](https://forum.code.org/t/lesson-26-level-13d-game-over/39495)

<div class="topic-metadata">

**Author:** [@achan](https://forum.code.org/u/achan)\
**Replies:** 0\
**Last updated:** [May 21, 2024, 5:57pm UTC](https://forum.code.org/t/lesson-26-level-13d-game-over/39495 "2024-05-21T17:57:57Z")

</div>

My creative students have out did themselves! They want to go beyond what the Challenges request. Question- how can a sprite be added to the End Game screen? … Okay, as I was typing this, INSPIRATION! thank you for …

---

## [Unit 3 Lesson 18](https://forum.code.org/t/unit-3-lesson-18/39479)

<div class="topic-metadata">

**Author:** [@rbowens2](https://forum.code.org/u/rbowens2)\
**Replies:** 1\
**Last updated:** [May 16, 2024, 5:47pm UTC](https://forum.code.org/t/unit-3-lesson-18/39479 "2024-05-16T17:47:17Z")

</div>

Can someone help debug this? The bear should continue moving back along the x axis when it reaches bear.x\>350 it should turn and go back the other way. It turns, but doesn’t move. What am I missing!?

---

## [Student score not showing](https://forum.code.org/t/student-score-not-showing/39451)

<div class="topic-metadata">

**Author:** [@jlester](https://forum.code.org/u/jlester)\
**Replies:** 2\
**Last updated:** [May 15, 2024, 7:12pm UTC](https://forum.code.org/t/student-score-not-showing/39451 "2024-05-15T19:12:31Z")

</div>

\[Game Lab - Code.org I have a student shows score isn’t showing. I have a lot of students wanting to do background sprites instead of draing backgrounds. Does that have something to do with it?

---

## ["Out of Scope" error U3 L28](https://forum.code.org/t/out-of-scope-error-u3-l28/39407)

<div class="topic-metadata">

**Author:** [@csalinas](https://forum.code.org/u/csalinas)\
**Replies:** 2\
**Last updated:** [May 15, 2024, 12:17pm UTC](https://forum.code.org/t/out-of-scope-error-u3-l28/39407 "2024-05-15T12:17:58Z")

</div>

I have a student working on their video game for unit 3, lesson 28. They’re receiving the “Out of Scope” error message and I’m not sure where the issue is in the code. Would someone be able to assist?

---

## [Help Finding the Error in the Code](https://forum.code.org/t/help-finding-the-error-in-the-code/39372)

<div class="topic-metadata">

**Author:** [@tdean1](https://forum.code.org/u/tdean1)\
**Replies:** 4\
**Last updated:** [April 27, 2024, 9:01am UTC](https://forum.code.org/t/help-finding-the-error-in-the-code/39372 "2024-04-27T09:01:35Z")

</div>

I am missing something and can’t seem to figure it out … I have tried changing so many things at this point. I have been changing up how I do my class since there are so many videos out there showing how to do stuff so …

---

## [Please help with some debugging on student projects](https://forum.code.org/t/please-help-with-some-debugging-on-student-projects/39361)

<div class="topic-metadata">

**Author:** [@tlong](https://forum.code.org/u/tlong)\
**Replies:** 2\
**Last updated:** [April 25, 2024, 6:05pm UTC](https://forum.code.org/t/please-help-with-some-debugging-on-student-projects/39361 "2024-04-25T18:05:13Z")

</div>

My students are making a side scroller game. They have a player that jumps to avoid an obstacle (that makes health go down) and try to touch a target (that makes the score go up). I have analyzed the code for both of …

---

## [Play 2 Sounds One after the Other](https://forum.code.org/t/play-2-sounds-one-after-the-other/39328)

<div class="topic-metadata">

**Author:** [@tdean1](https://forum.code.org/u/tdean1)\
**Replies:** 2\
**Last updated:** [April 20, 2024, 6:16am UTC](https://forum.code.org/t/play-2-sounds-one-after-the-other/39328 "2024-04-20T06:16:06Z")

</div>

I want to add two sounds to an onEvent that will play one at a time instead of at the same time. Is this possible? If we put two playSound commands then they play at the same time even when the loop is set to false.

---

## [Changing the volume of playSound()?](https://forum.code.org/t/changing-the-volume-of-playsound/39314)

<div class="topic-metadata">

**Author:** [@Tobi](https://forum.code.org/u/Tobi)\
**Replies:** 8\
**Last updated:** [April 18, 2024, 3:47am UTC](https://forum.code.org/t/changing-the-volume-of-playsound/39314 "2024-04-18T03:47:40Z")

</div>

Hi! I have returned to ask another question that I can’t quite seem to find the answer to. I am aware code.org uses java, therefore it has function calls that aren’t necessarily a block. Things like .isNaN, etc. Seeing…

---

## [Debug help: issues with sprites, groups and sprite collisions](https://forum.code.org/t/debug-help-issues-with-sprites-groups-and-sprite-collisions/39272)

<div class="topic-metadata">

**Author:** [@hihattybbc](https://forum.code.org/u/hihattybbc)\
**Replies:** 1\
**Last updated:** [April 9, 2024, 10:28pm UTC](https://forum.code.org/t/debug-help-issues-with-sprites-groups-and-sprite-collisions/39272 "2024-04-09T22:28:19Z")

</div>

https://studio.code.org/projects/gamelab/io32yKS6wnVDexNSMruh\_nznjSAGL4SRzwlChkUmVeQ \<—Link to the project (hope it works) (arrow keys to move) Background: I am developing a top-down SHMUP game to practice working wit…

---

## [CSD Unit 3 Lesson 13 - Mini-project Captioned Scenes](https://forum.code.org/t/csd-unit-3-lesson-13-mini-project-captioned-scenes/39271)

<div class="topic-metadata">

**Author:** [@langilla1](https://forum.code.org/u/langilla1)\
**Replies:** 6\
**Last updated:** [April 8, 2024, 3:48pm UTC](https://forum.code.org/t/csd-unit-3-lesson-13-mini-project-captioned-scenes/39271 "2024-04-08T15:48:12Z")

</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…

---

## [Help Debugging Error Message](https://forum.code.org/t/help-debugging-error-message/39215)

<div class="topic-metadata">

**Author:** [@wstone](https://forum.code.org/u/wstone)\
**Replies:** 8\
**Last updated:** [April 6, 2024, 2:04pm UTC](https://forum.code.org/t/help-debugging-error-message/39215 "2024-04-06T14:04:01Z")

</div>

I am attaching a picture of an error message one of my students is getting in Animations and Games Unit Lesson 28 Final Project. We have changed the code and set an starting velocityY, x, and y and still get the same mes…

---

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

<div class="topic-metadata">

**Author:** [@valerdz11](https://forum.code.org/u/valerdz11)\
**Replies:** 1\
**Last updated:** [April 5, 2024, 4:12pm UTC](https://forum.code.org/t/sprite-not-moving-when-background-changes/39265 "2024-04-05T16:12:20Z")

</div>

Here’s the link to the project: Game Lab - Code.org I’m having trouble moving the player sprite. Is it because of the backgrounds I have? Please help! I’ve tried setting the player sprite visibility to true inside of t…

---

## [Inconsistent jumping](https://forum.code.org/t/inconsistent-jumping/39256)

<div class="topic-metadata">

**Author:** [@editmaster0306](https://forum.code.org/u/editmaster0306)\
**Replies:** 3\
**Last updated:** [April 4, 2024, 9:44pm UTC](https://forum.code.org/t/inconsistent-jumping/39256 "2024-04-04T21:44:19Z")

</div>

\[I am making a game with a friend for school, we only want the character to jump only when on a platform. This works, but sometimes it will not let you jump.\] Game: (Game Lab - Code.org) What I expect to happen: \[The …

---

## [Library Issues with Library Making](https://forum.code.org/t/library-issues-with-library-making/39242)

<div class="topic-metadata">

**Author:** [@rklein](https://forum.code.org/u/rklein)\
**Replies:** 1\
**Last updated:** [April 2, 2024, 6:03pm UTC](https://forum.code.org/t/library-issues-with-library-making/39242 "2024-04-02T18:03:25Z")

</div>

Link to the project or level: App Lab - Code.org What I expect to happen: The correct returns should be printed from the console logs What actually happens: Only one of the functions is producing a return that is bein…

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

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