how can I display the estimated path? use the source 2.4.5
thx
drawPath
- coolbloke1324
- Posts: 181
- Joined: Mon Jan 23, 2012 5:20 pm
Re: drawPath
http://indie-resource.com/forums/viewto ... 78&p=56035Solib wrote:how can I display the estimated path? use the source 2.4.5
thx
Re: drawPath
Oh you always send me to read this post as if it will add to my question of what you need.
Well. And so used source 24.5-multiplayer-isometric-mouse. I tried to set in the ServerNetworkEvents.js in function _onPlayerControlToTile
but as you see it doesn't work, 2nd day looking for other ways, so I want you, as the developer know the bike has invented
Well. And so used source 24.5-multiplayer-isometric-mouse. I tried to set in the ServerNetworkEvents.js in function _onPlayerControlToTile
Code: Select all
// Start movement along the new path
playerEntity
.path.drawPath(true) // Enable debug drawing the paths
.path.drawPathGlow(true) // Enable path glowing (eye candy)
.path.clear()
.path.add(newPath)
.path.start();
- coolbloke1324
- Posts: 181
- Joined: Mon Jan 23, 2012 5:20 pm
Re: drawPath
Code: Select all
Oh you always send me to read this post as if it will add to my question of what you need
It's quite difficult to try and help everyone out with limited time so the best written questions with all the information will get the priority when receiving answers.
I'm not trying to be mean, I'm just trying to help you understand why it's important to provide more detail with your questions. If you spend a little more time to explain what you are trying to achieve and what you have already tried, it is much easier for me and others to help you.
Now that you have provided more detail I can see what you are trying to achieve and why it doesn't work.
You are enabling drawPaths(true) on the entity on the server but the server doesn't draw paths, only the client does.
You must enable drawPaths(true) on the entity on the client but there is an issue with that. The path does not exist on the client. The client doesn't know anything about the path the entity is traversing, only that it is moving because the server tells it to.
Currently it would be difficult to display this path on the client because the client does not have the path data at all.
Re: drawPath
thx
I solved the problem, sent from the server to the client ways and wrote a feature for its rendering manually. because the default method does not allow to change the design of the lines the way it is even better.
but I found a bug about it, I unsubscribed, link next
https://github.com/coolbloke1324/ige/issues/372
I solved the problem, sent from the server to the client ways and wrote a feature for its rendering manually. because the default method does not allow to change the design of the lines the way it is even better.
but I found a bug about it, I unsubscribed, link next
https://github.com/coolbloke1324/ige/issues/372