Posted: Mon Jun 12, 2017 12:44 pm Post subject: what now?
hi
so i have found the x and y coordinates of a player in a 2D game but what do i do now? if i want it to move to certion coordinate like if the player is standing:
27/8 and want to walk to 10/23 how do i make it check if its there and make it turn left and right in a smart way?
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
Posted: Mon Jun 12, 2017 7:12 pm Post subject:
That's a bit more involved than just setting the coords to the given values.
In order to 'test' if something is there as well as 'smart' walk to it, you need to do some method of navigation meshing or similar. Or create waypoints and walk between those until you have met your desired location. _________________
That's a bit more involved than just setting the coords to the given values.
In order to 'test' if something is there as well as 'smart' walk to it, you need to do some method of navigation meshing or similar. Or create waypoints and walk between those until you have met your desired location.
hi can you plz give me some examples or something?
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
Posted: Thu Jun 15, 2017 1:06 pm Post subject:
You can look into private server code implementations of automated movement, pathing and navmeshes such as private servers for WoW. Most common usages are via Recast and A* but other implementations are fairly popular nowadays too. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum