How do I have an object teleport to the position it was in X seconds ago? The closest example I can give is Tracer’s recall from Overwatch. Is there anyway to do this in GDevelop?
- At the beginning of the scene set a variable called TimeKeeping to 0.
- Append the current position into an array every game frame, and increase TimeKeeping by TimeDelta().
- Once TimeKeeping > X seconds, remove the first array element (i.e. array element at index 0) every game frame
When you need to teleport back to the position X seconds ago, use the position at the array element at index 0.