phaser-scrollable
phaser-scrollable copied to clipboard
How to Hide text that has scrolled past a certain length?
Hello! This is by far one of the best plugins for phaser. Amazing work!
I am however a little confused as to how to hide my text elements once the user has scrolled to a a point where they should no longer be visible.
I've tried adding the entire scroller object to a container, I've tried applying a mask to the scroller, tried modifying the default mask of the scroller, tried applying a custom mask and the scroller's mask to the text elements.
Nothing seems to work as of yet.
Could you please provide me with some tips or some guidance as to how this may be achieved?
hm.. I can't really understand the issue... The component, basically, is a group with a mask. so anything outside the mask viewable area shouldn't be visible...
Can you provide an example of a case it doesn't work?
Not necessarily related, but I've noticed that on Android webview, the Y position of the scrolling area seems to not work correctly (it behaves as if the scrolling area goes up to y==0). Seems to work fine on desktop.