If you use a condition such as enemy.UID = num, then when you use the find path to enemy action it will pick that enemy.
thx for the reply, not sure if im doing it right but its not working for me
Using pathfinding how do you follow enemy object UID? If I have multiple of the same enemy objects, how do i make an object follow the enemy object by UID?
Very nice thx man this is exactly what I was looking for!
I'm looking for a mechanic that (Using pathfinding and Line ofSight) allows the player Unit to follow an NPC wherever he goes but from a distance.
like in this video
youtube.com/watch?v=Le5f8AhudKs&feature=youtu.be
he follows the other Unit while shooting at him at the same time when within lineofsight. Once line of sight is lost, unit stops following.
How can I achieve this?
How do I make pathfinding and line of sight follow from a distance?
Im trying to get object1 to follow enemy1 but from a distance, also if there are multiple {enemy1) on the screen, object 1 should follow the one he is closer to. Like possible follow an enemy with a certain uid or something, How can I achieve this?
You do not have permission to view this post
Is there a way to make this work
Basically, is there a way to only create 1 of each object with ID at a time?
2 of The same objects with the same ID cannot be made.
but the same object with a different ID can be made.
Is this possible?
Develop games in your browser. Powerful, performant & highly capable.
Ok, try this demo: https://www.dropbox.com/s/8nie2jvl9brfzm7/Pathfinding_Stack2.c3p?dl=0 Touch several points on the screen.
Ok, try this demo:
https://www.dropbox.com/s/8nie2jvl9brfzm7/Pathfinding_Stack2.c3p?dl=0
Touch several points on the screen.
nice it works ty!
gyazo.com/677fac13cea5faaa2fd81f03377236e4
I got that part. Thx, but im trying to set the paths before the player goes to them. See how i placed down flags, now I want the player to go to each flag in the order i placed them down
Maybe im doing something wrong but The moveto waypoint makes the player go back and forth and then stops.
Why not just keep the waypoint coordinates in a variable or an array rather than link it to specific object? If you link it to object only, it does not know which one to pick, so it probably picks the last one..
Why not just keep the waypoint coordinates in a variable or an array rather than link it to specific object?
If you link it to object only, it does not know which one to pick, so it probably picks the last one..
thx for reply, how would I go about doing this? how can i set coordinates to a variable?
No, you can use MoveTo with pathfinding - use "Move along pathfinding path" action and select "Add waypoints"
I tried to get the moveto and the pathfinding to work together but it just goes straight to the path avoiding all collision. Are there any tutorials on how to do this and add the waypoints?
Member since 4 Feb, 2016