With a screen tap in Spark AR you can activate or deactivate your effect for your Instagram stories. For example, the filters that you can find on my Instagram, are made in a way such that a screen tap activates the filter, changing the natural colours in my story.
If you missed my post on how you can create your own Instagram story filters, you can find the step-by-step guide here.
This post will give you a detailed explanation of how you can add a screen tap in Spark AR.
Adding a screen tap in Spark AR
1. Disabling the visibility of the canvas layer
Disabling the visibility of the canvas layer makes sure that your filter is “deactivated” when you don’t tap the screen. In order to do that, select “canvas0” on the left under “Scene” and then untick the box on the right next to where it says “Visible”.
2. Add a screen tap patch
Right-click into the patch editor. A new window will pop-up. Search for “screen tap” and insert the patch.
3. Add a counter
Again, right-click into the patch editor. The window will appear, then search for “Counter”. Select it and insert the patch. Where it says “Maximum Count” enter the number “2”.
4. Add an equals exactly patch
In order to do that, right-click into the patch editor, search for “equals exactly” and insert the patch.
5. Create a visibility patch for your canvas
Select your “canvas0” on the left and then on the right side of the screen, click the arrow next to “Visible” to create the patch.
7. Connect the patches
The patches should be connected with each other as follows:
- Screen Tap – Tap connects to Counter – Increase
- Counter – Count connects to Equals Exactly – Top
- Equals Exactly – Output connects to canvas0 patch.
Your patch editor should look like this:
That’s it. If you followed all the steps, the screen tap was successfully added to your effect. This means that a tap on the screen will now activate your effect and another tap on the screen will deactivate it again. Wasn’t that hard, right?
The last step would be to add an instruction to your effect. This simply means, that the screen will show the user what he or she has to do in order to activate the effect. In this case, the screen would read “Tap to change”. If you would like to add that to your effect, you can find the instructions here.
In case you think that the instructions are unnecessary, you can skip this step and go ahead with uploading your filter to Instagram. If you are not sure on how to do add instructions to your filter, I explained it in this post.
I hope I was able to help you out! Leave your Instagram below and I will check out the filters that you have created.