Laumark 0 Report post Posted March 22, 2016 Hey guys. For my mobile game I need to make part of the screen scrollable (The marked space in the picture). Does anyone have an idea on how to do that? Thanks in advance! scrollable Quote Share this post Link to post Share on other sites
ivan.popelyshev 1071 Report post Posted March 22, 2016 Cant look at it. Can you upload it somewhere? Quote Share this post Link to post Share on other sites
Laumark 0 Report post Posted March 22, 2016 Ah, of course! Quote Share this post Link to post Share on other sites
ivan.popelyshev 1071 Report post Posted March 22, 2016 var myContainer = new PIXI.Container(); //... //do that once myContainer.filterArea = new PIXI.Rectangle(myContainer.position.x, myContainer.position.y, containterWidth, containerHeight); // Instead of mask I use filter. There's no "noop" filter, but fxaa is best choice :) var fxaaFilter = new PIXI.FXAAFilter(); myContainer.filters = [fxaaFilter]; //that's how you scroll it. //better to cache "myContainer.height" after you add all elements there myContainer.pivot.y = Math.max(0, Math.min(scrollY, myContainer.height - filter)); Something like that. Also, there is a problem with InteractinoManager, it does not take into account that trick, so it'll be possible to click on elements that were scrolled out of bounds. BUT if you make top and bottom views interactable and that they appear ON TOP (after) that thing, everything will be ok Quote Share this post Link to post Share on other sites