Mathieu St-Onge
Mathieu St-Onge

Reputation: 15

Depth and collision with ennemies

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.

http://ifile.it/xmhra7g

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

Answers (1)

dooleyo
dooleyo

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

Related Questions