Replies: 1 comment 3 replies
-
Does 6e0e922 help? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm a happy Kha user for many years, but now I ran into a problem that I'm not able to quickly fix or work around.
On the HTML5 target there is the following problem: when calling Image.lock() and Image.unlock() to update the image pixels, it all works fine visually. However, Image.at(x,y) still uses the old values.
My overall intention is to replace one image from a texture atlas with another one (with lock() and unlock()), but at() still needs to work on that since I use that to detect if a user clicks on a sprite or not.
I'm not well versed in WebGL (hence the use of Kha ;)), so I was hoping any of you here knows how to fix it or a workaround would also be fine. Thanks! :)
Beta Was this translation helpful? Give feedback.
All reactions