Yoreni Posted May 23, 2020 Share Posted May 23, 2020 Hi i only want a certain part of a container to be show kind of like it being cropped ive tryed this. leaderboard is a class i made that inheraites the PIXI.Container class and i know that that the container does not have the frame propity but texture does but im clueless of how to do it heres my code below leaderboard = new Leaderboard(10,320,26); app.stage.addChild(leaderboard); let rectangle = new PIXI.Rectangle(0, 0, 320, 26); leaderboard.frame = rectangle Quote Link to comment Share on other sites More sharing options...
themoonrat Posted May 24, 2020 Share Posted May 24, 2020 What you're looking for is a mask https://pixijs.io/examples/#/masks/graphics.js Quote Link to comment Share on other sites More sharing options...
Yoreni Posted May 25, 2020 Author Share Posted May 25, 2020 23 hours ago, themoonrat said: What you're looking for is a mask https://pixijs.io/examples/#/masks/graphics.js thanks it works Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.