PShape bot1; PImage landscape; float x = 0; float speed = 5; void setup() { fullScreen(); bot1 = loadShape("robot1.svg"); landscape = loadImage("lunar.jpg"); smooth(); } void draw() { image(landscape,0,0,width,height); shape(bot1,x, height/2, 100,200); x += speed; if (x > width) { x =0; } }