Ninjadoodle Posted June 25, 2018 Share Posted June 25, 2018 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 *** Quote Link to comment Share on other sites More sharing options...
greencoder Posted December 29, 2019 Share Posted December 29, 2019 (edited) Hey @Ninjadoodle, I am looking at solving the same problem, could you please share a code snippet on how you solved this? I tried masking a container but it doesn't seem to be working for me. Maybe I am missing some parenting. Edited December 29, 2019 by greencoder Quote Link to comment Share on other sites More sharing options...
greencoder Posted December 30, 2019 Share Posted December 30, 2019 Don't worry about this, got it working. 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.