Reputation: 15
Once again I got a question.
I've simplified my game to make it on time. However, I still have a major problem; the flashlight. I would like it to mask everything else except where it's actually aimed.
Still not able to make the collisions too.
Sorry for being annoying with my questions. (should I edit when I have new questions or keep on posting new ones?)
Thanks, Mathieu.
Upvotes: 1
Views: 84
Reputation: 872
I presume you are looking for a way to make a mask follow your mouse cursor? Here is a pretty good example in AS3: http://www.schoolofflash.com/2008/03/tutorial-actionscript-30-masks/
As for collision detection, this is a very common question for Flash. Googling "flash collision detection" should do the trick.
Happy coding.
Upvotes: 1