libgdx Does anyone have knowledge of Waypoints?

Hello all,

Anyone here know anything about waypoints? I want to utilize it on my enemy. I do not mind if it is done randomly or on a specific path. As I need the enemy to go to a specific point.

I wish to implement this method and wish to learn about it. If anyone knows how, please can you show any example to help me.
Any help will be appreciated.

Thank you
shadowMoses

From the search results of “waypoints”: http://www.java-gaming.org/topics/libgdx-waypoints-anyone/33385/view.html

I did observe that post, but it did not give me enough information on how to implement it.
I will keep looking.
shadowMoses

Well I didn’t include the actual movement as that is completely open-ended, but a simple example would be:


Vecor2 currentWaypoint;
Vector2 currentPosition;

update() {
    Vector2 path = currentWaypoint.cpy().sub(currentPosition);
    path.nor().scl(ENTITY_SPEED);
    currentPosition.add(path);
}

Cheers.
Looked at a few examples and it seems this is very advaced and needs more deeper knowledge in A* and more advaced techniques in Java.
I will keep looking for youtube videos. Maybe more examples on the internet as well.

Accepting more views and examples
shadowMoses

With A* you’re taking say a grid and finding a path through it, but alternatively you can place ‘navigation waypoints’ that link to other waypoints the current one can access (e.g. move from and to)

If you’re interested in a waypoint based system, in which you will need to place the waypoints, and then link them up appropriately, I can show you something I wrote the other week which does exactly that

Side note: A* is a searching method and isn’t tied to a grid. So A* can be used on a graph of waypoints to choose a path through them. If fact grids aren’t very interesting.

@JESTERRRRRR
That would be very helpful. You can post it on here if you wish or you can send it to me as a message.
Thank you
shadowMoses