Dissolve (two questions)

0 favourites
  • 5 posts
From the Asset Store
Dissolve
$2.49 USD
Dissolve effect with parameters for edge color, offset and size.
  • I have two images, and want to dissolve one to the other.

    Currenty I have one on top of the other in different layers and use the fade out behavior on the top image, but this is only temporary.

    1) Is there any built in dissolve effect, either between two frames of a sprite, or between two sprites?

    In the game, there are 10 possible images underneath to desolve to, but the top image (dessolve from) is always the same.

    The deslove can be quite blocky, and doesnt need to be random.

    2) The other problem is that if the player clicks to end the game, I need to be able to stop any desolves currently in progress (or at least find a way to wait for them), and reset them all to the top image. This is currently failing with the fade out behavior, as if its still fading out when they end the game, I reset the opacity of the top image back to 100, but as its in mid-fade, it screws up.

    Any ideas?

    Many thanks!

  • Havent quite figured out how it works, but the result is prefect.

    +1000 credits to R0J0hound!

  • R0J0hound would you be able to comment that example?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • indiegrimes

    event 1:

    every time the number of pixel objects is 0, have the two images swap layers and...

    event 2:

    Do a loop to cover the objects with pixel sprites. They are sent to back so the overall order looks like this:

          +--- s1 sprite: blend: source in
          |
          +--- pixel sprites
       ___|______
      /   |     /
     / layer 1 /--- force own texture: yes
    /_________/
          |
          +--- s2 sprite: blend: normal
       ___|______
      /   |     /
     / layer 0 /
    /_________/[/code:18u4e1c5]
    
    Events 3 and 4
    set the blend mode for the image sprites depending on what layer they're on.
    
    event 5
    Destroys the pixels one at a time.  The repeat is so it goes faster than 1 pixel per frame.  The equations should simply be SPEED*60*dt where SPEED is in pixels per second.
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)