# Coding and Debugging Help

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

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

**Page:** 6

---

## [Car not moving in all Directions, Timer Issues, and Background Looping not Working](https://forum.code.org/t/car-not-moving-in-all-directions-timer-issues-and-background-looping-not-working/38907)

<div class="topic-metadata">

**Author:** [@thelma.johnson](https://forum.code.org/u/thelma.johnson)\
**Replies:** 2\
**Last updated:** [January 18, 2024, 1:01pm UTC](https://forum.code.org/t/car-not-moving-in-all-directions-timer-issues-and-background-looping-not-working/38907 "2024-01-18T13:01:21Z")

</div>

The information below is from one of my 7th grade students who is having issues with her car not moving in some directions, Timer issues, and the background not looping properly. Link to the project or level: Game Lab -…

---

## [Scoring Issues in Game Lab](https://forum.code.org/t/scoring-issues-in-game-lab/38906)

<div class="topic-metadata">

**Author:** [@thelma.johnson](https://forum.code.org/u/thelma.johnson)\
**Replies:** 1\
**Last updated:** [January 17, 2024, 1:48pm UTC](https://forum.code.org/t/scoring-issues-in-game-lab/38906 "2024-01-17T13:48:20Z")

</div>

The following information is from one of my 7th grade students working on their Game Project from Unit 3 of CS Discoveries using Game Lab. Link to the project or level: Game Lab - Code.org What I expect to happen: for …

---

## [isTouching Issues in Game](https://forum.code.org/t/istouching-issues-in-game/38905)

<div class="topic-metadata">

**Author:** [@thelma.johnson](https://forum.code.org/u/thelma.johnson)\
**Replies:** 1\
**Last updated:** [January 17, 2024, 1:45pm UTC](https://forum.code.org/t/istouching-issues-in-game/38905 "2024-01-17T13:45:31Z")

</div>

The following information is from one of my 7th grade students working on the Unit 3 Gaming Project in Game Lab. \*\*Game Lab - Code.org What I expect to happen: The alien is to avoid the a1-a7, but if they touch the gam…

---

## [Adding Time to a Timer when Player Collects Target](https://forum.code.org/t/adding-time-to-a-timer-when-player-collects-target/38898)

<div class="topic-metadata">

**Author:** [@sheri.mcnair](https://forum.code.org/u/sheri.mcnair)\
**Replies:** 2\
**Last updated:** [January 15, 2024, 6:07pm UTC](https://forum.code.org/t/adding-time-to-a-timer-when-player-collects-target/38898 "2024-01-15T18:07:55Z")

</div>

Would appreciate help with a student’s issue with timer and adding time to the timer as a result of collecting a sprite in the game. Thank you so much! Link to the project or level:\[Game Lab - Code.org\] What I expect t…

---

## [Sound Glitches (Was working now not) Test on your computer please!](https://forum.code.org/t/sound-glitches-was-working-now-not-test-on-your-computer-please/38897)

<div class="topic-metadata">

**Author:** [@svflake](https://forum.code.org/u/svflake)\
**Replies:** 2\
**Last updated:** [January 12, 2024, 10:29pm UTC](https://forum.code.org/t/sound-glitches-was-working-now-not-test-on-your-computer-please/38897 "2024-01-12T22:29:13Z")

</div>

Link to the project or level: Code.org What I expect to happen: Music to play during gameplay and then switch to another loop on gameover What actually happens: music is glitchy during gameplay, gameover music abruptly…

---

## [Scoreboard and Health Score Errors](https://forum.code.org/t/scoreboard-and-health-score-errors/38893)

<div class="topic-metadata">

**Author:** [@svflake](https://forum.code.org/u/svflake)\
**Replies:** 2\
**Last updated:** [January 12, 2024, 8:42pm UTC](https://forum.code.org/t/scoreboard-and-health-score-errors/38893 "2024-01-12T20:42:00Z")

</div>

What I expect to happen: I expected the score to go up when Alucard touches the blood drop. What actually happens: Score Does not change, numbers will not display, “tostring” error What I’ve tried: I copied the cod…

---

## [When you click the mouse button nothing happens](https://forum.code.org/t/when-you-click-the-mouse-button-nothing-happens/38883)

<div class="topic-metadata">

**Author:** [@cpetroro](https://forum.code.org/u/cpetroro)\
**Replies:** 1\
**Last updated:** [January 11, 2024, 12:03am UTC](https://forum.code.org/t/when-you-click-the-mouse-button-nothing-happens/38883 "2024-01-11T00:03:35Z")

</div>

This is a students interactive card project, we cannot get it to work. When you click the present it is supposed to disappear and then would another sprite appears. We have tried changing the order of the commands. We ha…

---

## [Dash ability and Single Air Jump](https://forum.code.org/t/dash-ability-and-single-air-jump/38831)

<div class="topic-metadata">

**Author:** [@sheri.mcnair](https://forum.code.org/u/sheri.mcnair)\
**Replies:** 2\
**Last updated:** [January 4, 2024, 12:57pm UTC](https://forum.code.org/t/dash-ability-and-single-air-jump/38831 "2024-01-04T12:57:35Z")

</div>

Link to the project or level: What I expect to happen: Character will jump into the air and then fall down without being able to jump again while in the air. Also, want the ability to utilize the x button for directio…

---

## [App Lab coding question](https://forum.code.org/t/app-lab-coding-question/26766)

<div class="topic-metadata">

**Author:** [@molson](https://forum.code.org/u/molson)\
**Replies:** 6\
**Last updated:** [January 1, 2024, 5:56am UTC](https://forum.code.org/t/app-lab-coding-question/26766 "2024-01-01T05:56:30Z")

</div>

My students are creating a digital breakout using the App Lab. Some want to use text as one of the locks. They are wondering how they can have their app recognize text input when it is correct, and then go to another scr…

---

## [Is it possible to play another sound after one ended?](https://forum.code.org/t/is-it-possible-to-play-another-sound-after-one-ended/38833)

<div class="topic-metadata">

**Author:** [@outlawclash2021](https://forum.code.org/u/outlawclash2021)\
**Replies:** 1\
**Last updated:** [December 26, 2023, 2:42pm UTC](https://forum.code.org/t/is-it-possible-to-play-another-sound-after-one-ended/38833 "2023-12-26T14:42:40Z")

</div>

Sorry for any misconceptions about coding problems, but i have a question if its possible to play another sound after one sound ends?

---

## [Please help, the girl is not jumping](https://forum.code.org/t/please-help-the-girl-is-not-jumping/38805)

<div class="topic-metadata">

**Author:** [@sherry.wood](https://forum.code.org/u/sherry.wood)\
**Replies:** 1\
**Last updated:** [December 14, 2023, 7:59am UTC](https://forum.code.org/t/please-help-the-girl-is-not-jumping/38805 "2023-12-14T07:59:30Z")

</div>

The girl goes up super slow and then doesn’t come back down. I can’t figure this out. I have tried adding the keywentdown up inside if girl y\>324 and a lot of other things but now luck:( Thanks!

---

## [Simultaneous movement not working \*Resolved\*](https://forum.code.org/t/simultaneous-movement-not-working-resolved/38790)

<div class="topic-metadata">

**Author:** [@obrienm](https://forum.code.org/u/obrienm)\
**Replies:** 4\
**Last updated:** [December 12, 2023, 6:38pm UTC](https://forum.code.org/t/simultaneous-movement-not-working-resolved/38790 "2023-12-12T18:38:31Z")

</div>

Link to the project or level:(Game Lab - Code.org) What I expect to happen: In a 2 player game, one player is controlled by wasd and the other by arrows. Player 1 spins their bat by pressing e, player 2 spins by pressin…

---

## [showScore Function Not Working](https://forum.code.org/t/showscore-function-not-working/38791)

<div class="topic-metadata">

**Author:** [@msima](https://forum.code.org/u/msima)\
**Replies:** 1\
**Last updated:** [December 12, 2023, 1:37am UTC](https://forum.code.org/t/showscore-function-not-working/38791 "2023-12-12T01:37:08Z")

</div>

One of my students is having issues with his showScore function and it not showing up on his game. Can anyone take a look at this game and help us understand why the score is not showing up? Variable was created before d…

---

## [Help find this bug...snowflakes stop falling](https://forum.code.org/t/help-find-this-bug-snowflakes-stop-falling/38792)

<div class="topic-metadata">

**Author:** [@sherry.wood](https://forum.code.org/u/sherry.wood)\
**Replies:** 1\
**Last updated:** [December 12, 2023, 12:56am UTC](https://forum.code.org/t/help-find-this-bug-snowflakes-stop-falling/38792 "2023-12-12T00:56:18Z")

</div>

Link to the project or level: Unit 3 lesson 21 Game Lab - Code.org What I expect to happen: snowflakes to continue falling What actually happens: as you play if you catch 2 snow flakes or they reach the bottom eventua…

---

## [Help with final project](https://forum.code.org/t/help-with-final-project/38770)

<div class="topic-metadata">

**Author:** [@christopher\_franklin](https://forum.code.org/u/christopher_franklin)\
**Replies:** 1\
**Last updated:** [December 7, 2023, 3:39pm UTC](https://forum.code.org/t/help-with-final-project/38770 "2023-12-07T15:39:34Z")

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

---

## [Can we use hsl instead of rgb in game lab for colors?](https://forum.code.org/t/can-we-use-hsl-instead-of-rgb-in-game-lab-for-colors/38763)

<div class="topic-metadata">

**Author:** [@anne.b.gregal](https://forum.code.org/u/anne.b.gregal)\
**Replies:** 1\
**Last updated:** [December 6, 2023, 10:06am UTC](https://forum.code.org/t/can-we-use-hsl-instead-of-rgb-in-game-lab-for-colors/38763 "2023-12-06T10:06:34Z")

</div>

I want to randomize colors, but i want to limit the outcomes to a selection of only bright colors. I think this would be easiest by using HSL where H can be any random number between 0 and 100, but S would always = 100…

---

## [Using the "show" and "hide" features in App Lab](https://forum.code.org/t/using-the-show-and-hide-features-in-app-lab/38745)

<div class="topic-metadata">

**Author:** [@amagaw.code](https://forum.code.org/u/amagaw.code)\
**Replies:** 2\
**Last updated:** [December 1, 2023, 3:24am UTC](https://forum.code.org/t/using-the-show-and-hide-features-in-app-lab/38745 "2023-12-01T03:24:15Z")

</div>

Hi! I’m working on this project as a trial because my student is planning something similar. What I expected to happen: I expected the program to hide all the ghosts when the game starts. It does. I expected to be ab…

---

## [CSD Unit 3 Lesson 24](https://forum.code.org/t/csd-unit-3-lesson-24/38732)

<div class="topic-metadata">

**Author:** [@kavita\_nautiyal](https://forum.code.org/u/kavita_nautiyal)\
**Replies:** 2\
**Last updated:** [November 30, 2023, 11:39am UTC](https://forum.code.org/t/csd-unit-3-lesson-24/38732 "2023-11-30T11:39:50Z")

</div>

Link to the project or level: \[Game Lab - Code.org\] What I expect to happen: \[Line 53 catch the isTouching boolean and act accordingly\] What actually happens: \[The second iteration gives an error ERROR: Line: 53: TypeE…

---

## [Group assistance](https://forum.code.org/t/group-assistance/38704)

<div class="topic-metadata">

**Author:** [@mriley](https://forum.code.org/u/mriley)\
**Replies:** 2\
**Last updated:** [November 27, 2023, 5:41pm UTC](https://forum.code.org/t/group-assistance/38704 "2023-11-27T17:41:29Z")

</div>

Link to Project What I expect to happen: When the tiger sprite1 touches the hotdog food, I create a new sprite (sprite2) and add sprite2 to a group - that works! However I want sprite2 / sprite3… and so on to follow sp…

---

## [Game over screen is playing twice](https://forum.code.org/t/game-over-screen-is-playing-twice/38712)

<div class="topic-metadata">

**Author:** [@theonlyboyalexiss](https://forum.code.org/u/theonlyboyalexiss)\
**Replies:** 1\
**Last updated:** [November 25, 2023, 6:10am UTC](https://forum.code.org/t/game-over-screen-is-playing-twice/38712 "2023-11-25T06:10:04Z")

</div>

Link to the project or level:(App Lab - Code.org) What I expect to happen: Once the game over screen is active, it should only perform the code once What actually happens: Once the game over screen is active, it should…

---

## [HELP with a project](https://forum.code.org/t/help-with-a-project/38691)

<div class="topic-metadata">

**Author:** [@nread](https://forum.code.org/u/nread)\
**Replies:** 2\
**Last updated:** [November 16, 2023, 9:26pm UTC](https://forum.code.org/t/help-with-a-project/38691 "2023-11-16T21:26:26Z")

</div>

My student wants to make a craps game (challenge lesson 16). What they want to happen when the ‘r’ key is pressed is to update the ‘dice’ variable in their if statement and show the number on the dice image. It just do…

---

## [Can't access Code.org](https://forum.code.org/t/cant-access-code-org/38661)

<div class="topic-metadata">

**Author:** [@pbyrd](https://forum.code.org/u/pbyrd)\
**Replies:** 2\
**Last updated:** [November 9, 2023, 3:47pm UTC](https://forum.code.org/t/cant-access-code-org/38661 "2023-11-09T15:47:15Z")

</div>

\[what do you do when your students can not access Code. org no matter whant they try and laptops will not register them and open up. Internet has been down for a couple of days in Code,org. They are assignments that ar…

---

## [My student's code isn't turning back into blocks](https://forum.code.org/t/my-students-code-isnt-turning-back-into-blocks/38614)

<div class="topic-metadata">

**Author:** [@griffinisdope](https://forum.code.org/u/griffinisdope)\
**Replies:** 2\
**Last updated:** [November 4, 2023, 3:34am UTC](https://forum.code.org/t/my-students-code-isnt-turning-back-into-blocks/38614 "2023-11-04T03:34:33Z")

</div>

Does anyone know why it isn’t converting back into blocks?

---

## [Counting number of rotations](https://forum.code.org/t/counting-number-of-rotations/38605)

<div class="topic-metadata">

**Author:** [@skschiltz](https://forum.code.org/u/skschiltz)\
**Replies:** 3\
**Last updated:** [November 3, 2023, 6:33pm UTC](https://forum.code.org/t/counting-number-of-rotations/38605 "2023-11-03T18:33:00Z")

</div>

Unit 3-- Lesson 18 Link Link is to an example of what we are trying. A student is trying to count how many times an item rotates. We can only get it to count the rotation 1 time.

---

## [Can links be added to App Lab?](https://forum.code.org/t/can-links-be-added-to-app-lab/38594)

<div class="topic-metadata">

**Author:** [@merazd](https://forum.code.org/u/merazd)\
**Replies:** 4\
**Last updated:** [October 31, 2023, 3:01pm UTC](https://forum.code.org/t/can-links-be-added-to-app-lab/38594 "2023-10-31T15:01:56Z")

</div>

I have a student who would like to add a link in App Lab and we have searched the Documentation and it shows to use the open UI control but there is no option for this in App Lab to use this control. What are we doing wr…

---

## [Student bug - rotation and conditionals to switch direction](https://forum.code.org/t/student-bug-rotation-and-conditionals-to-switch-direction/38595)

<div class="topic-metadata">

**Author:** [@marci.cabrera](https://forum.code.org/u/marci.cabrera)\
**Replies:** 1\
**Last updated:** [October 31, 2023, 2:41pm UTC](https://forum.code.org/t/student-bug-rotation-and-conditionals-to-switch-direction/38595 "2023-10-31T14:41:43Z")

</div>

Link to the project or level: Game Lab - Code.org I want for the stars to rotate, and once they reach a certain rotation, they rotate the other way. What is happening is the star doesn’t move at all, or it just rotates…

---

## [Sprite scale not reaching conditional in order to shrink it once it reaches a certain size](https://forum.code.org/t/sprite-scale-not-reaching-conditional-in-order-to-shrink-it-once-it-reaches-a-certain-size/38577)

<div class="topic-metadata">

**Author:** [@marci.cabrera](https://forum.code.org/u/marci.cabrera)\
**Replies:** 1\
**Last updated:** [October 26, 2023, 9:33pm UTC](https://forum.code.org/t/sprite-scale-not-reaching-conditional-in-order-to-shrink-it-once-it-reaches-a-certain-size/38577 "2023-10-26T21:33:22Z")

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

---

## [Line 44 error when trying to restart game](https://forum.code.org/t/line-44-error-when-trying-to-restart-game/38575)

<div class="topic-metadata">

**Author:** [@sphillip](https://forum.code.org/u/sphillip)\
**Replies:** 4\
**Last updated:** [October 26, 2023, 7:50pm UTC](https://forum.code.org/t/line-44-error-when-trying-to-restart-game/38575 "2023-10-26T19:50:01Z")

</div>

Several students are trying to add code at the end of their game to hit a button to restart. I don’t know how to code this so I don’t know how to help them.

---

## [Unit 3 Lesson 11 question](https://forum.code.org/t/unit-3-lesson-11-question/38570)

<div class="topic-metadata">

**Author:** [@dvillarreal](https://forum.code.org/u/dvillarreal)\
**Replies:** 5\
**Last updated:** [October 26, 2023, 7:30pm UTC](https://forum.code.org/t/unit-3-lesson-11-question/38570 "2023-10-26T19:30:52Z")

</div>

Just a question. Is it only possible to put shapes on top of sprites? Or is there a way to have some shapes on top of a background and then some shapes behind other sprites? drawSprites redraws all the sprites, so I c…

---

## [Sprites appearing randomly](https://forum.code.org/t/sprites-appearing-randomly/38566)

<div class="topic-metadata">

**Author:** [@evan.james](https://forum.code.org/u/evan.james)\
**Replies:** 3\
**Last updated:** [October 26, 2023, 6:09am UTC](https://forum.code.org/t/sprites-appearing-randomly/38566 "2023-10-26T06:09:09Z")

</div>

(Game Lab - Code.org) Students scoop sprites are appearing randomly after about 10 seconds. They want their scoop sprites to appear after the pop sprite has occurred. Any help would be greatly appreciated.\]

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

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