Skip to content

Not able to get burning effect or to control the size #2

@rvizcaino80

Description

@rvizcaino80

First of all, thanks for this amazing library. I am trying to get it working but for some reason my effect doesn't look like the example.

  1. Borders don't look burnt (look at the attached gif).
  2. Effect size is too big and I can't control it (I tried with go.set("#sprite", "dissolve.z", 0.01) but it doesn't seem to work).

This is what I did after adding the dependency.

Required the library

local dissolve_fx = require("dissolve_fx.dissolve_fx")

Init the library (images are in the same atlas as the sprite)

dissolve_fx.init("#sprite", "noise", "ramp", "cover")
go.set("#sprite", "dissolve.z", 0.01)
go.set("#sprite", "dissolve.w", 0.0)

Animate

go.animate("#sprite", "dissolve.w", go.PLAYBACK_LOOP_PINGPONG, 1, go.EASING_LINEAR, 3)

CleanShot 2023-12-22 at 11 32 37

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions