This is the main block using which you can create Scratch Card. Parameter
arrangement - Arrangement you want to convert to Scratch Card.
ImageName - name of image you want to overlay. in this version only Assets image is supported.
This block you can again convert the scratched card to Unscratched card.
Using this block you can clear the scratching portion
This block will be triggered when Scratching is going on and will tell percentage of area scratched.
A new update which makes this extensions more easy to use. But before proceeding i want to tell That you can create any custom layout in background of Scratch are and use it as card. as many people asked me about that.
Block are now id based means now you can give specific id(number) to scratch card so that you can create multiple cards
Now it will support local file image to create scratch card mean the image you have downloaded or already saved in memory
Using this block you can set minimum percentage of scratching to trigger Revealed Event. Suppose if you have set value of percent 75 then when user will scratch the 75% of area of scratch card it will automatically get triggered.
Using this block you can check if the scratch card is revealed or not
No need to explain this as the name says that you can change the visibility of the scratch card. but it will be useful by following way -
In above video i have did this
Just changed the visibility when revealed is triggered…