THE CHALLENGE: There is a secret treasure hidden somewhere on this map! Can you find it? HOW TO PLAY: Use the Arrow Keys to move your character around the map. Search every corner—the "X" is invisible until you walk right over it! Once you find the "X", the treasure is yours! RESET: Press the Green Flag to hide the treasure in a brand-new random spot.
ABOUT THE CODE: Created for a treasure hunt challenge! Special thanks to the Scratch community for the "Ghost Effect" trick—this allows the player to touch the "X" even while it's invisible. Random position logic: go to x: (pick random) y: (pick random) ASSETS: Sprites and Backdrops from the Scratch Library. "X Marks the Spot (Treasure)" design by me.