off Posted December 14, 2016 Posted December 14, 2016 How can I move a player naturally from one point to another? setElementPosition
itHyperoX Posted December 14, 2016 Posted December 14, 2016 (edited) u want a command teleport or what? Edited December 14, 2016 by MilOG ww
tosfera Posted December 15, 2016 Posted December 15, 2016 What do you mean with 'naturally', do you want the player to walk there or rather want it to teleport there?
ViRuZGamiing Posted December 15, 2016 Posted December 15, 2016 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.
off Posted December 15, 2016 Author Posted December 15, 2016 @ViRuZGamiing exactly! But I can not do anything like that.
Tails Posted December 15, 2016 Posted December 15, 2016 You can control a player with setControlState. Just read the examples, it's pretty straightforward.
off Posted December 15, 2016 Author Posted December 15, 2016 2 minutes ago, Tails said: You can control a player with setControlState. Just read the examples, it's pretty straightforward. I will try!
tosfera Posted December 16, 2016 Posted December 16, 2016 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.
off Posted December 20, 2016 Author Posted December 20, 2016 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now