Make a sprite bounce back and forth question

csd-unit-3-lesson-14
#1

So I have a student who really wants to make a sprite move up to the top of the screen then when they get the stop move down until they reach the bottom and then go back up. Basically bouncing up and down on the screen.

Neither of us can figure out a way to make this happen. Anyone have any thoughts. Here is my code that I remixed so I can play around with it.

#2

Hi Ben,

There are several ways to make this happen. In this unit, Chapter 2 Building Games will provide the student with the code needed to cause this to happen. My suggestion is to have the student work through these lessons and then return to Lesson 14 to update their project.