Need help with my border blocks

In my game Flowlab Game Creator - Blast Galaxy, I was fixing a few things with my camera, and it reveals the border. But I thought I could use this opportunity to make it a good thing. I was thinking of when the player gets close enough, it would reveal the border of the map. I tried using @Samuel_Tomé_PixelPizza’s Secret entrance bundle and making it oppose it so rather than going invisible, it reveals. The only problem is…

I. Don’t. Know. How.

Can I get some help?

2 Likes

I haven’t looked at the code at all, but I assume you would change the alpha value from 0 to 100 when the player is detected

1 Like

Hi, I looked at it, and this is what you need to do to invert the logic:

  1. Replace all the proximities with the Player X/Y globals; it’s a lot more performance-friendly.

  2. Add an expression before the Alpha block with “150-A” inside.
    You can change the “150” to 100 or something bigger like 250, depending on how much Alpha you want the blocks to have when the player is near.
    The higher the number, the more block appears when the player is near.

150-A:
image

50-A:

I hope this helps, and best of luck with development :slight_smile:

4 Likes

download

3 Likes