Create map with tracker

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By badtaste988

So, I want to create a map that has a dot as a position of the player that moves as the time passes by (I’m using a timer to track in-game days that passed and for each day a certain distance is passed and the dot moves).
It should be only one sprite (like a map of the country). I tried to play with NavigationPolygonInstance but failed. What would be the easiest way to do it?

What would be the easiest way to do it?

The easiest way to do what?!

Moving a dot? Create a Sprite and… well, change it’s position.

Have the dot follow a more complex, non-linear path? Create a Path2D, then add a PathFollow2D as it’s child, increase the path offset over time and position the dot sprite there. The "Your first game"-tutorial talks about this in more depth (although for placing enemies instead of a marker on a map - but the principle is the same!).

If you want a more specific answer, start by asking a more specific question!

njamster | 2020-09-15 08:56

You are right - sorry for not being clear with the question.

I guess I wanted to know what would be the easiest way to, as you said above, move a dot over the map on a specific, predetermined path, but also to connect it with timer, so that the dots move only when the time passes (aka timer is active).

I’ll check the tutorial you mentioned - thanks for the direction!

badtaste988 | 2020-09-15 10:04