Make Entire Screen Flash

0 favourites
  • 4 posts
From the Asset Store
A collection of 10 amazing sprite sheet animations for your incredible games
  • So I know (through searching) that you can easily simulate a flash by using a white sprite over everything but with the WebGL and the example given by Construct 2 : WebGL Shader luminance transition, I want to be able to recreate this effect in my project but just simply copying the events over isn't working.

    I also can't seem to find what has been done outside of the events page.

    Any ideas?

    P.S. Hello world! (1st post ever)

  • Bumping this up...

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Have you copied the global variables too and added the WebGL effect to the layer?

    It also gets a little more complicated than that as the event code in the example works by manipulating the "luminance" depending on how much in-game time has passed since the start of the game.

    As in, the effect begins the moment you start the game and ends in about 2 seconds.

    So if you want it to work as an effect you can trigger on a certain condition, you will need to make some changes.

    I think the example given is actually quite flexible and doesn't require much editing to turn it into a triggered effect, you just need to get an idea of the in-game time and how it works and know what you're doing, and adapt it to your needs and events.

    Just need to practice and toy around with it.

  • Yeah I transferred everything and I get how to do triggers. Ive been messing around with c2 for a week now and I understand a lot of the events stuff and making things on my own.

    I never noticed that where exactly the WebGL effect was added to and I think that was the issue. Looking at the example given also doesnt say that the layer had the WebGL effect I guess i'll just mess around some more.

    Edit: Oh wow okay. I am dumb. I just realized in the events is where the WebGL effect is added <img src="smileys/smiley5.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)