Jump to content
Search Community

2dPhysics plugin in Adobe Animate

curtiswiens test
Moderator Tag

Recommended Posts

Sorry I cannot pen this. I have a Adobe Animate project I took over and I want to add some particle effects. The array seems to be working but it is only animating one dot. Has anyone used 2dphysics in Animate. I am about to just code this by hand but would rather not. 

Link to comment
Share on other sites

I have not been coding all year so I am sure I am just missing something:

 

let dots =[];


for (i = 0; i < 80; i++) {

    dots.push(this.dot);
}
gsap.to(dots, {
        duration: .5,
        physics2D: {
            velocity:20,
            angle: 5,
            gravity: 800
        },
        delay: "random(0, 2.5)"
    });

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...