# Masking problems are driving me nuts!

**URL:** <https://forum.kirupa.com/t/masking-problems-are-driving-me-nuts/221268>\
**Category:** programming\
**Created:** [April 3, 2007, 1:06am UTC](https://forum.kirupa.com/t/masking-problems-are-driving-me-nuts/221268 "2007-04-03T01:06:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![keke](https://avatars.discourse-cdn.com/v4/letter/k/c5a1d2/32.png) [@keke](https://forum.kirupa.com/u/keke)\
**Post date:** [April 3, 2007, 1:06am UTC](https://forum.kirupa.com/t/masking-problems-are-driving-me-nuts/221268/1 "2007-04-03T01:06:15Z")

</div>

Ok so back again with another problem D:

I’m making a maze game in the dark, and you can only see a part of the maze thats in a circle (about 80 pixels in diameter) around the character(like it’s a light).  
So i thought i’d use a mask of a circle and have the background as the masked layer. Everything was going fine until i wanted the circle to have the same x and y co-ordinates as the player. So that the light/mask would follow the player as he moved around the maze.  
I hope that explains it.

Anyways i tried various codes and nothing will make that mask move. Then i found the mask tutorials and it says that you can’t move a mask’s x and y.  
And then my head got confused.  
I really don’t know what to do.

I’d appreciate the help SOOO much.
