The “MOVE RECORDER” behaviour makes a sprite move along a path as soon as a game starts.
This can be once or in a continuous loop
What if you only want a sprite to move along a path only when you want to? and be able to choose which path?
This code demo can show how to do this.
The Octopus can be dragged.
Click a STAR or HAT or ROCKET
When the sprite clicked touches the Octopus, the Octopus will stick to that sprite and hitch a ride.
Clicking a different sprite while hitching a ride will stop the Octopus from riding it’s current sprite.
This type of code can be used in Realtime strategy games for example:
You can draw multiple paths to different locations in the editor.
When a games running you can click to make a clone, then click where you want the clone to move to.
Then that clone can follow an invisible path to the destination. The sprite the clones hitches a ride on can be invisible as well.
For a PAC MAN type game, you can make the ghosts move to the players area in a maze, instead of the ghosts just mindlessly following a single path in a loop
This project ran perfectly when created.
After i saved and published the project, the sprites “Rocket,Star,Hat” don’t move at all now.
“READY” seems to be glitching and can’t handle this simple code.