Masking and animating a mask

hey all,

i was wondering if it is possible to dynamically mask a textured plan or sprite and scale this mask with code?

thanks!
cp

Can you give a bit more detail about what you want to do with this?

hey there,

thanks for getting back to me.
i have an hourglass and i want to make the sand appear to run down. I wanted to do this with code so i have an image of full sand and i wanted to mask it so the it looks like its running down.