Jump to content

Yoreni


Yoreni
 Share

Recommended Posts

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 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...