0 votes

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?

in Engine by (16 points)

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!

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!

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.