drawPath

All things HTML5 or text based engines, or really any web based engines.
Post Reply
Solib
Posts: 6
Joined: Wed Sep 25, 2013 7:26 pm

drawPath

Post by Solib »

how can I display the estimated path? use the source 2.4.5
thx
User avatar
coolbloke1324
Posts: 181
Joined: Mon Jan 23, 2012 5:20 pm

Re: drawPath

Post by coolbloke1324 »

Solib wrote:how can I display the estimated path? use the source 2.4.5
thx
http://indie-resource.com/forums/viewto ... 78&p=56035
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
Solib
Posts: 6
Joined: Wed Sep 25, 2013 7:26 pm

Re: drawPath

Post by Solib »

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

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();
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
User avatar
coolbloke1324
Posts: 181
Joined: Mon Jan 23, 2012 5:20 pm

Re: drawPath

Post by coolbloke1324 »

Code: Select all

Oh you always send me to read this post as if it will add to my question of what you need
The problem is, you tend to post one-line questions that have very little information in them and then wait for someone to ask you the questions about it.

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.
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
Solib
Posts: 6
Joined: Wed Sep 25, 2013 7:26 pm

Re: drawPath

Post by Solib »

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
Post Reply

Return to “HTML5/Web Engines”