Move forward and leave track behind, then move back following the track

Hi guys, I would like to make a quick prototype but I have no idea how to start.

Here is what I would to implement:

  1. Object can move forward, turn around and leaving track behind
  2. Then the object can move back following the track if I press a button.

It works like the undo button but I don’t know how to start it.

Any advice would be appreciated. Thanks!

BTW, I am a amateur game maker and not very good at programming. If it’s too complicated then I may not be able to work out. Thanks.

If you want to create a system that can satisfy ‘undo’ requests, you’ll have to store up a list/buffer of movements/turns and to undo you’d reverse the list.
ie: Move right + 10.
Reverse: position -10 right.

:slight_smile:

1 Like

Cool, beside this I will start from something easier first. Thanks.

Cool. :slight_smile: First you gotta move before you can think about undoing moves :wink:
Good luck with your game