I made optimization for big RPG games.
I made it so that if your clip isn’t available to see through the screen, the opacity would be set to 0.
Here is a gif that is utilizing it.
And here is what’s happening behind the recording
NOTE: Wick editor broke the colour pallet, thats why it looks weird.
if(this.hits(playerange)){
this.opacity = 1;
}else{
this.opacity = 0;
}
Is the code, put it in the Update script of your Clip.
Make a Square named “playerange”