Show off time really. I’ve had this game in my head for literally years. Since I was a kid in fact when I had a physical real world version of this, only without the coins, which are my addition as a reason to actually go somewhere.
The idea is that the clock moves along the black lines which represent grooves in the tiles. Click tiles to slide them around. Arrange the tiles to make the clock reach the coins. You can keep sliding the tiles while the clock is moving. You can also slide tiles before you set the clock moving so you get a nice start. But once the clock is moving it keeps going.
This game uses a real line following algorithm that uses 2 sensors, one ahead and one slightly to the left. I wanted for a while to try writing a line following algorithm in Scratch. It’s fussy and difficult and mine in this game is far from perfect. Don’t try and do this with the kids at Code Club.
Under the line following is a sliding puzzle. This is much easier and uses Scratch version 2’s cloning code. So each tile is an instance of the main tile, which is hidden, and each takes care of its own movement. So when you click on one it looks around to see which way it can move. If it can move into an adjacent empty space then it does. Simple. Definitely easy enough to do with the kids. Feel free to steal the code. I’m pretty sure this could be used in a variety of other games.