Can be used turnTowards animation? additionally "setTexture" and "many steps" problems
See original GitHub issue1- When call turnTowards function one after another, becauseof no promise, only last facingDirection can be seen on screen. can we add a turning animation?
2- And can I ask (I ask this at discussions but i think this can be a bug) I use isometric game example so custom walking, and when I change spriteSheet with setTexture, only one frame can be seen. when start walking, character turn back old texture because of custom walking animation function use old texture. I try to run again
createPlayerAnimation.call(this, "up-right", 26, 29, "new-texture"); // I configure func for detect "new-texture"
...
but nothing changed. Is there anyway to change texture? ( I success when use customWalkingAnimationMap with only use setTexture function, but it uses only one frame for a tile and on isometric map it is not useful)
3- last question; I want to set a function “move 2 or many tiles on same direction”. when I try to moveTo function and if there is a collide on direction, character goes around collide but I want only straight movement. when I try to move function with for loop, it does not work because of promise, is there anyway to move many steps
thanks for suggestions
Issue Analytics
- State:
- Created 10 months ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
I think it might be because of a bug that I recently discovered while trying to expose the pathfinding. There is a bug in the pathfinding algorithm implementation in combination with CLOSEST_REACHABLE. I will provide a fix soon. I created a bug, so you can track it (#336)
Thanks for this detailed answers. For second question as you are right, I mean that may be a Phaser bug, but I do not know phaser details so ask here if any simple method in grid engine for solution and as you say I try to use 2 sprites
I will try all suggestions and turn back if success or not