Jump to content

Masking Question - SOLVED


Ninjadoodle
 Share

Recommended Posts

Hi @enpu / Panda People

I have a large image and a couple of buttons on the screen.

I would like to show only a square portion of the image in the middle of the screen (mask out the rest), and use the buttons to scroll the image around.

I'm trying to get the image to scroll and the mask to stay in the same place, and I'm having trouble figuring out how to achieve it.

I've managed to mask out the correct area (and even putting the image in a container and masking the container itself), but whenever I move the image around, the mask moves as well.

Any help would be awesome!

*** EDIT - Got it! If you mask a container and put a sprite inside - you can move the sprite and the mask will stay still. I was just making a mistake :) ***

Link to comment
Share on other sites

  • 1 year later...

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...