# Unit 6 Lesson 13 Dot 13 Challenge Solution

**URL:** <https://forum.code.org/t/unit-6-lesson-13-dot-13-challenge-solution/26085>\
**Category:** Unit and Lesson Discussion\
**Tags:** csd-unit-6, csd-unit-6-lesson-13\
**Created:** [April 3, 2019, 5:23pm UTC](https://forum.code.org/t/unit-6-lesson-13-dot-13-challenge-solution/26085 "2019-04-03T17:23:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lkeil](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/lkeil/32/5239_2.png) [@lkeil](https://forum.code.org/u/lkeil)\
**Post date:** [April 3, 2019, 5:23pm UTC](https://forum.code.org/t/unit-6-lesson-13-dot-13-challenge-solution/26085/1 "2019-04-03T17:23:44Z")

</div>

![Challenge](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/a/ad98d9461602758ab76c7c38c1acde81604c647f.png)

UPDATE: I have something that works. SOLVED: See my reply.

The math on making the pitch/roll slower makes sense: “divide” it, right?

I am trying to figure out the Challenge: how to make the car stay on the screen.

I’ve been able to make another buzzer sound when x \< 0 or \> 260, but that is just an audio alert that they’re off the screen.

In the Unit Three in the Game Lab, there is “bounce” command if x \< 0 or \> 400 to create borders. Is something like this in AppLab?

What would be a solution to keep the car on the screen? I’d like to extend this lesson so students get more out of it. TIA! 🙂

---

<div class="post-metadata">

**Author:** ![lkeil](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/lkeil/32/5239_2.png) [@lkeil](https://forum.code.org/u/lkeil)\
**Post date:** [April 3, 2019, 5:35pm UTC](https://forum.code.org/t/unit-6-lesson-13-dot-13-challenge-solution/26085/2 "2019-04-03T17:35:23Z")

</div>

UPDATE! I have something that works.  
 ![solution](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/2/281c38aed74dab0569a5d3cdfb75d541022998a2.png)  
The set property keeps them on screen.

Does anyone have something else or something better?

---

<div class="post-metadata">

**Author:** ![bradleywellsashley](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bradleywellsashley/32/522_2.png) [@bradleywellsashley](https://forum.code.org/u/bradleywellsashley)\
**Post date:** [April 6, 2019, 2:45pm UTC](https://forum.code.org/t/unit-6-lesson-13-dot-13-challenge-solution/26085/3 "2019-04-06T14:45:50Z")

</div>

Lena,

This is great! Nice problem solving and sorry others didn’t get a chance to chime in and help - I don’t know how many people are on Unit 6. That looks pretty good, if it’s one line of code that usually is a simple way to do it.

Brad
