This example builds on Example 1 (original project) and bounces a circle using variables, rather than the x & y positions etc. of the sprite. See inside. All code by me (@kriblo).