Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can be used turnTowards animation? additionally "setTexture" and "many steps" problems

See original GitHub issue

1- 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, "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:closed
  • Created 10 months ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

Annoraaqcommented, Nov 27, 2022

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)

Sinanaltundagcommented, Nov 24, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

3D texturing in animation; step by step workflow + techniques ...
Let's break down the workflow of 3D texturing in animation plus what are the best texturing softwares and techniques.
Read more >
2D Animation Sequence - Effect House - TikTok
You can use Animation Sequence to apply a 2D animation to a material as a texture or render as an animated image on...
Read more >
Texture Sheet Animation module - Unity - Manual
A particle's graphic need not be a still image. This module lets you treat the Texture as a grid of separate sub-images that...
Read more >
Texture Animation: Applying Morphing and Vertex ... - Medium
The Vertex Animation Texture (VAT) technique consists of baking animations ... textures can also be used to store any kind of information (e.g....
Read more >
Oxygen 2 - Manual - Bohemia Interactive Community Wiki
When active many functions will use the pin - such as rotate, scale, insert point. You can use PIN mode also for simple...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found