//make variables followerX and followerY exist in this sketch float followerX, followerY; void setup ( ) { //set background color and playscreen size background ( 50 ); size ( 600, 600 ); } void draw ( ) { //draw background over animations and draw a follower background ( 50 ); follower ( ); } void follower ( ) { //draw a follower rectMode ( CENTER ); fill ( 255, 255, 0 ); rect ( followerX, followerY, 100, 100, 60 ); //make the follower follow the mouse followerX = mouseX; followerY = mouseY; }