Jump to content

[HELP] Move player


iRc

Recommended Posts

1 hour ago, tosfera said:

What do you mean with 'naturally', do you want the player to walk there or rather want it to teleport there?

Naturally would Mean walk.

My guess would be, set the walking animation since that one moves forward as far as I know. Then check constantly the rotation to that 1 Point (note that there won't be path finding tho) and check if the positionering has been reached if so stop.

Link to post

If you think about it.. it's actually quite easy to do pathfinding. You got the GPS resource which has all the nodes, if you simply modify the distances it stays away from nodes, you got the basics laid out. Then simply create a colshape around the player to see if there are any objects in their way. if so, move around them. it would be pretty hard to do since turns will mix them up, but if you're really interested in getting a basic pathfinding.. that would be the way to get started.

Link to post
On 16/12/2016 at 6:55 AM, tosfera said:

If you think about it.. it's actually quite easy to do pathfinding. You got the GPS resource which has all the nodes, if you simply modify the distances it stays away from nodes, you got the basics laid out. Then simply create a colshape around the player to see if there are any objects in their way. if so, move around them. it would be pretty hard to do since turns will mix them up, but if you're really interested in getting a basic pathfinding.. that would be the way to get started.

So its not that easy, right? Hahaha

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...