Skip to content

Sprite texture not rendering in the correct position. #7340

Answered by bigtimebuddy
Kitanga asked this question in Q&A
Discussion options

You must be logged in to vote

Try this: https://codepen.io/bigtimebuddy/pen/MWJKNbg?editors=1010

  • pointerover/pointerout instead of pointerenter/pointerleave
  • use smaller canvas size
  • temporarily removed the RenderTexture caching of the shape

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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Kitanga
Comment options

@Kitanga
Comment options

@Kitanga
Comment options

Answer selected by Kitanga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #7339 on March 26, 2021 12:17.