Jump to content

[HELP] Move player


off

Recommended Posts

Posted

How can I move a player naturally from one point to another?

setElementPosition

 

i5 7400 3.0GHZ
B150M-GAMING 3 DDR4
HyperX FURY 8GB 2133Mhz DDR4
Galax GTX 1060 6GB OC

Posted
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.

"If debugging is the process of removing software bugs, then programming must be the process of putting them in."

Posted
2 minutes ago, Tails said:

You can control a player with setControlState. Just read the examples, it's pretty straightforward.

I will try!

i5 7400 3.0GHZ
B150M-GAMING 3 DDR4
HyperX FURY 8GB 2133Mhz DDR4
Galax GTX 1060 6GB OC

Posted

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.

logo-small.png?v=3 tiny-sapdfr.png

 

If you want to contact me directly concerning Advanced-Gaming, please contact me at [email protected]

Posted
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

i5 7400 3.0GHZ
B150M-GAMING 3 DDR4
HyperX FURY 8GB 2133Mhz DDR4
Galax GTX 1060 6GB OC

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...