Problem with masking

Hello! :slight_smile: If I mask an object that is going to be moving in corona, do I have to set the objects masks x and y values to = the objects x and y values in an enterFrame function or will it follow automatically if the mask is attached to the object with object:setMask( mask )?

Also, the object I masked went completely invisible on the simulator after I masked it…

I have attached the image of the car (the object) and the mask image

the entire code is here: http://pastebin.com/mhLcf5Lp

The object I am trying to mask is “car” and the mask is called “carMask”

I would be extremely happy if anyone of you could help me figure this out! 

Thanks alot in advance :slight_smile: