x position reports exactly how far left/right the sprite currently is — check it every step, and you can make the sprite reappear on the opposite edge the instant it wanders off the stage, a classic game trick.
👀 What You'll Make
🧩 Grab These Blocks
1Events
2Control
3Motion
🔨 Build It Like This
1
whenclicked
2
forever
3
move 10 steps
2
ifx position > 240then
3
set x to -240
▶️ Click the green flag above the stage to try it!