Masking Effect
Hey guys does anybody know how to hide a read square behind a heart or mask it? I want to make it that when my actor gets hit the red will drop looking as if the heart is less full. Does anybody know how to do this?
Comments
(To make the heart image, I took a standard heart shape outline and selected the inside with the magic wand tool in PS and then did an inverse select and filled the selection with white. This allows you to use the color selections in GS to match the background color, although I've unlocked the heart actor in order to access the scene background color values.)
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Hi @MovingStudios
And here's a couple of other ways, similar to the description by @DeadlySeriousMedia - might help you out.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
If you really need a heart without a background, as gyro has so ably shown you, MovingStudios, you could draw each successive frame as a separate graphic in your preferred graphics app and swap those out at each hit event.
Thanks for the "Awesome" @TesseractEngine , appreciated! So another way would be as per @TesseractEngine 's suggestion, i.e use image frames which change with your integer;
Or, based on the top version in my test file, cut out your heart shape in your background exactly where you want it, so you've basically got your background with a heart-shaped transparent hole in it; save as png with transparency and bring in the background to your game. Now place the red block actor behind the background. :-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps