Here are demonstrations on how to use createEdgeSprites to create a top edge, bottom edge, left edge, and right edge, and example code for how to use those edge sprites to make a sprite bounce around the screen. Also included how to add multiple frames and control when they are displayed and changed. Game Lab is part of Computer Science Discoveries (CSD) on code.org