GameMaker Surfaces help! Clipping one sprite using another to maker a shadow...

J

jumboeats

Guest
Hi all,

My gms education has been going nicely... until I ran into surfaces, that is! I understand the basics of setting them (I think), but really struggling with this little hurdle.

I have a 'plane' object that flies around, and then every now and then it passes 'under' a cloud. I'd like to see a 'shadow' of the plane on top of the cloud as it passes underneath it. So basically setting up surfaces where the cloud acts as a mask which then shows the clipped image of the plane on top (probs just draw_sprite_ext with alpha set to 0.5 or whatever looks good?)...

Any help and especially a code example would be a great help - I feel like cracking this will unlock the way surfaces work for me mentally.

J
 
Top