Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Burst/Burrow Animation #119

Open
ChasarooniZ opened this issue Dec 6, 2024 · 0 comments
Open

[Feature] Burst/Burrow Animation #119

ChasarooniZ opened this issue Dec 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ChasarooniZ
Copy link
Owner

Add a toggle that allows creatures with a BURROW SPEED to play the burst/burrow animation

//Config
const duration = 10 // In Seconds
const shouldItStay = false; // Should the ground hole stay?
const sizeMultiplier = 1; //Size of the FXs

//Preload FX
await Sequencer.Preloader.preloadForClients(["jb2a.burrow.out.01.still_frame.0", "jb2a.burrow.out.01.brown.1"])


//Animation
new Sequence()
    .effect() //Ground FX
        .atLocation(token)
        .file("jb2a.burrow.out.01.still_frame.0")
        .scaleToObject(4 * sizeMultiplier)
        .persist(shouldItStay)
        .belowTokens()
        .duration(duration * 1000)
        .fadeIn(600, { ease: "easeInExpo", delay: 200 })
        .fadeOut(1000)
    .effect() //Burst FX
        .atLocation(token)
        .file("jb2a.burrow.out.01.brown.1")
        .scaleToObject(3 * sizeMultiplier)
        .belowTokens()
    .play()
    ```
@ChasarooniZ ChasarooniZ added the enhancement New feature or request label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant