Sprite texture not rendering in the correct position. #7340
-
Expected BehaviorThe sprite's texture should be where the sprite is Current BehaviorPIXI explorer extension shows that this is where the sprite should be but when I move my mouse to the position of the sprite nothing happens (I placed listeners on the sprites I made). Possible SolutionNo idea why this is happening, help urgently needed. Steps to ReproduceGo here https://codepen.io/kitanga/pen/BapjgZZ?editors=1010 Scroll until you are on the center, I removed the css that kept it on screen just to make sure that might not be what's causing the issue. Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Try this: https://codepen.io/bigtimebuddy/pen/MWJKNbg?editors=1010
This is a HUGE canvas, things start to be unstable at such a large sizes. If you're building a map, which it looks like you are consider something like https://github.com/davidfig/pixi-viewport. |
Beta Was this translation helpful? Give feedback.
Try this: https://codepen.io/bigtimebuddy/pen/MWJKNbg?editors=1010
This is a HUGE canvas, things start to be unstable at such a large sizes. If you're building a map, which it looks like you are consider something like https://github.com/davidfig/pixi-viewport.