Hi to all !
I'm sure many of have seen the end credits of Harry Potter and the Prisonner of Azkaban.
If not, it's here :
Here's my point.
I'd like to recreate the "footprint" effect combined with Pathfinder.
In one word, player touches the screen where he wants to go and travel is marked by fading footprints (different footprints everytime, for realism).
Any one has an idea ?
not quite what you asked but this is something I was playing around with that might help
Thanks, RamPackWobble !
Any idea on how to embed it to the pathfinder behavior ?
Develop games in your browser. Powerful, performant & highly capable.
Taken the pathfinding example and added footprints.
RamPackWobble : Woaw, thanks ! That's exactly what I needed ! Thank you so much
RamPackWobble : I was thinking of som improvement. Any idea on how to create footprints at the same distance from one another regardless of speed ?
Not tested but I guess you could make a note of the x,y when the foot print is spawned then have a running check of the distance to the "head" then only spawn a new footprint when the distance is greater than the required minimum, reset the x,y and start again...
another thought is if you know the player speed then you could adjust the timer as needed to even out the footprints
RamPackWobble : yeah, came up with the same conclusion but couldn't achieve sth so far. Tried to divide speed with time to get a proportional spawn rate but doesn't work.
Here is an example with using distance. Needs work.