global gdot on exitFrame me gdot = sprite(me.spriteNum) gdot.locH = gdot.locH + random(-10, 10) gdot.locV = gdot.locV + random(-10, 10) gdot.trails = 1 gdot.blend = 40 -- max locV is 399 -- max locH is 599 if gdot.locH > (the stage).rect.width or gdot.locH < 0 then gdot.locH = 625 + random(5) gdot.locV = 255 + random(5) end if if gdot.locV > (the stage).rect.height or gdot.locV < 0 then gdot.locH = 625 + random(5) gdot.locV = 255 + random(5) end if end