Sign in to follow this  

Masking Question - SOLVED

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 :) ***

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.