# \#csd-unit-3-lesson-18

**URL:** https://forum.code.org/tag/csd-unit-3-lesson-18/391.md

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

---

## [Sprites on sprites disappear on click](https://forum.code.org/t/sprites-on-sprites-disappear-on-click/39787)

<div class="topic-metadata">

**Author:** [@elisa.baughman](https://forum.code.org/u/elisa.baughman)\
**Replies:** 4\
**Last updated:** [September 12, 2024, 12:26pm UTC](https://forum.code.org/t/sprites-on-sprites-disappear-on-click/39787 "2024-09-12T12:26:04Z")

</div>

student code My student wants each present to disappear when clicked so on the last click no more presents - I thought she had it figures out, but all sprites are not visible on first click?

---

## [U3L18 Level 11a question](https://forum.code.org/t/u3l18-level-11a-question/33742)

<div class="topic-metadata">

**Author:** [@vjay](https://forum.code.org/u/vjay)\
**Replies:** 3\
**Last updated:** [November 16, 2020, 10:53pm UTC](https://forum.code.org/t/u3l18-level-11a-question/33742 "2020-11-16T22:53:15Z")

</div>

Could someone please help by explaining why does the sprite leave the screen in 11a, instead of going around in a loop. Thank you! https://studio.code.org/projects/gamelab/\_vqy-4HRqeiEd8drmDBzyulJii1Wajbq1I9SlQ0QuIM

---

## [Adding an invisible wall](https://forum.code.org/t/adding-an-invisible-wall/32386)

<div class="topic-metadata">

**Author:** [@burnsk](https://forum.code.org/u/burnsk)\
**Replies:** 4\
**Last updated:** [March 9, 2020, 9:41pm UTC](https://forum.code.org/t/adding-an-invisible-wall/32386 "2020-03-09T21:41:58Z")

</div>

//Help with student who would like to add an “Invisible wall” pushing the sprite off the screen…

---

## [Activity 16 How to Create Edge Sprites](https://forum.code.org/t/activity-16-how-to-create-edge-sprites/15420)

<div class="topic-metadata">

**Author:** [@jchun](https://forum.code.org/u/jchun)\
**Replies:** 14\
**Last updated:** [February 14, 2020, 2:53am UTC](https://forum.code.org/t/activity-16-how-to-create-edge-sprites/15420 "2020-02-14T02:53:11Z")

</div>

Can someone please tell me how to create "edge" sprites to keep the character from bouncing out in Puzzle 16? I looked at the example solution, but can't seem to find the right trunk from the animation library.

---

## [Collide code not working](https://forum.code.org/t/collide-code-not-working/32222)

<div class="topic-metadata">

**Author:** [@hcooper](https://forum.code.org/u/hcooper)\
**Replies:** 3\
**Last updated:** [February 11, 2020, 2:45pm UTC](https://forum.code.org/t/collide-code-not-working/32222 "2020-02-11T14:45:42Z")

</div>

I have a student who their flyer and coin are not appearing and the collide code is not quite right We cannot see to figure out what is wrong. Thank you

---

## [Help for student Unit 3L18](https://forum.code.org/t/help-for-student-unit-3l18/32025)

<div class="topic-metadata">

**Author:** [@crosado](https://forum.code.org/u/crosado)\
**Replies:** 3\
**Last updated:** [January 10, 2020, 2:00pm UTC](https://forum.code.org/t/help-for-student-unit-3l18/32025 "2020-01-10T14:00:20Z")

</div>

Student would like to have his character not go off screen when the game is played - how would he achieve this? var character = createSprite(200, 200); character.setAnimation(“flyer”); var coin = createSprite(randomNu…

---

## [TypeError: fly.isTouching is not a function](https://forum.code.org/t/typeerror-fly-istouching-is-not-a-function/31762)

<div class="topic-metadata">

**Author:** [@lkeil](https://forum.code.org/u/lkeil)\
**Replies:** 4\
**Last updated:** [December 11, 2019, 6:07pm UTC](https://forum.code.org/t/typeerror-fly-istouching-is-not-a-function/31762 "2019-12-11T18:07:40Z")

</div>

Link to the project or level: https://studio.code.org/projects/gamelab/7YM3cC6WMPSbF97e1t1Ol7LnzTzVWtaCZ0YExnZ\_qgU What I expect to happen: coin moves to random position and score increases if fly touches it What actua…

---

## [Unit 3 flyer Game](https://forum.code.org/t/unit-3-flyer-game/31526)

<div class="topic-metadata">

**Author:** [@lorien\_cafarella](https://forum.code.org/u/lorien_cafarella)\
**Replies:** 6\
**Last updated:** [October 31, 2019, 5:43pm UTC](https://forum.code.org/t/unit-3-flyer-game/31526 "2019-10-31T17:43:51Z")

</div>

Link to the project or level: https://studio.code.org/s/csd3-2019/stage/18/puzzle/16?section\_id=2275140&user\_id=54578758 \*\*What I expect to happen:\*\*character to move, to bounce off sides and obstacle \*\*What actually h…

---

## [Unit 3 Lesson 18 Flyer Game - Coin & Obstacle collision problem](https://forum.code.org/t/unit-3-lesson-18-flyer-game-coin-obstacle-collision-problem/25360)

<div class="topic-metadata">

**Author:** [@mbrunner](https://forum.code.org/u/mbrunner)\
**Replies:** 2\
**Last updated:** [March 7, 2019, 2:03pm UTC](https://forum.code.org/t/unit-3-lesson-18-flyer-game-coin-obstacle-collision-problem/25360 "2019-03-07T14:03:22Z")

</div>

I am still having trouble with my coin appearing behind or inside the obstacle collision zone when it resets to a Random sprite.x and sprite.y position after it is touched OR when I rest the program. I have looked at th…

---

## [Creating edge sprites in Game Lab-Unit 3, Lesson 18](https://forum.code.org/t/creating-edge-sprites-in-game-lab-unit-3-lesson-18/14081)

<div class="topic-metadata">

**Author:** [@jstearns](https://forum.code.org/u/jstearns)\
**Replies:** 5\
**Last updated:** [February 11, 2019, 2:48pm UTC](https://forum.code.org/t/creating-edge-sprites-in-game-lab-unit-3-lesson-18/14081 "2019-02-11T14:48:22Z")

</div>

Students are having a difficult time creating edges for their games. I have read another post by someone else on the teacher forum and looked at their example. However, the example they have posted does not contain a g…

---

## [Custom setCollider?](https://forum.code.org/t/custom-setcollider/13643)

<div class="topic-metadata">

**Author:** [@rachel.krone](https://forum.code.org/u/rachel.krone)\
**Replies:** 3\
**Last updated:** [February 4, 2019, 5:40pm UTC](https://forum.code.org/t/custom-setcollider/13643 "2019-02-04T17:40:57Z")

</div>

When students use the setCollider block, they have options of a rectangle or circle. What if their sprite is flat on bottom like a rectangle and has a curvy surface at the top? Is there a way to have a custom shape so it…

---

## [Unit 3: Set Collider](https://forum.code.org/t/unit-3-set-collider/21643)

<div class="topic-metadata">

**Author:** [@hensleyn](https://forum.code.org/u/hensleyn)\
**Replies:** 1\
**Last updated:** [November 5, 2018, 3:22am UTC](https://forum.code.org/t/unit-3-set-collider/21643 "2018-11-05T03:22:33Z")

</div>

Can you set the collider for an animation to be something other than a rectangle or square? My student has a sprite that he wants the collider to mimic the shape of the object. Is there a way to do that?

---

## [Bubble 16 - Help with Edges debugging](https://forum.code.org/t/bubble-16-help-with-edges-debugging/21203)

<div class="topic-metadata">

**Author:** [@debbie.may](https://forum.code.org/u/debbie.may)\
**Replies:** 6\
**Last updated:** [November 1, 2018, 6:30pm UTC](https://forum.code.org/t/bubble-16-help-with-edges-debugging/21203 "2018-11-01T18:30:01Z")

</div>

Hello. I spent a lot of time with the edge code, and got mine to detect the edges. An 8th student of mine came up and asked about making it detect edges because it is in the suggested extras. I cannot find the differ…

---

## [Collision modes combination doesn't work as expected](https://forum.code.org/t/collision-modes-combination-doesnt-work-as-expected/19580)

<div class="topic-metadata">

**Author:** [@ladislav.seredi](https://forum.code.org/u/ladislav.seredi)\
**Replies:** 3\
**Last updated:** [September 12, 2018, 9:51pm UTC](https://forum.code.org/t/collision-modes-combination-doesnt-work-as-expected/19580 "2018-09-12T21:51:26Z")

</div>

Maybe you remember the old game called Sokoban, I’ve created a simplified clone of it at https://studio.code.org/projects/gamelab/mt0-87v53EOli4Zx5wFzAA4F6p8ZpLp8shuoHto8S-s The goal for the main character (player) is t…

---

## [Sprite Collision detection area](https://forum.code.org/t/sprite-collision-detection-area/15523)

<div class="topic-metadata">

**Author:** [@lkeil](https://forum.code.org/u/lkeil)\
**Replies:** 5\
**Last updated:** [April 19, 2018, 4:04pm UTC](https://forum.code.org/t/sprite-collision-detection-area/15523 "2018-04-19T16:04:24Z")

</div>

For U3 L22 student is creating a game similar to Flappy birds. The obstacle sprites the player must avoid are triangular icicles that hang down and protrude up. The obstacle sprites collision area can be either circular…

---

## [Helping to Clarify Differences Between New Collision Blocks](https://forum.code.org/t/helping-to-clarify-differences-between-new-collision-blocks/12506)

<div class="topic-metadata">

**Author:** [@dschneider](https://forum.code.org/u/dschneider)\
**Replies:** 2\
**Last updated:** [December 4, 2017, 11:24pm UTC](https://forum.code.org/t/helping-to-clarify-differences-between-new-collision-blocks/12506 "2017-12-04T23:24:12Z")

</div>

I just wanna throw out that, even after following along with this lesson in Code Studio and doing the lessons on my own, I was still unclear about the differences between the 4 new types of collision blocks: displace, co…

---

## [Unit 3 Lesson 18 Activity 14 Exemplar](https://forum.code.org/t/unit-3-lesson-18-activity-14-exemplar/12064)

<div class="topic-metadata">

**Author:** [@bpenney](https://forum.code.org/u/bpenney)\
**Replies:** 4\
**Last updated:** [November 28, 2017, 5:56pm UTC](https://forum.code.org/t/unit-3-lesson-18-activity-14-exemplar/12064 "2017-11-28T17:56:11Z")

</div>

Unit 3 Lesson 18 Activity 14 Exemplar has some code about "Check if the character is touching the bad coin" and "If the sun goes behind the sun, move it". I think this information should be removed from the Exemplar. …

---

## [Pilot - U3L18 - Collisions](https://forum.code.org/t/pilot-u3l18-collisions/5910)

<div class="topic-metadata">

**Author:** [@dani](https://forum.code.org/u/dani)\
**Replies:** 9\
**Last updated:** [March 3, 2017, 5:45am UTC](https://forum.code.org/t/pilot-u3l18-collisions/5910 "2017-03-03T05:45:38Z")

</div>

Please leave any feedback, thoughts, or resources for the lesson here. As a reminder, good feedback has the following elements: description of your school and classroom context details on what went well when teaching …
