Jump to content

How can i create a tween for a group?


tanskuu
 Share

Recommended Posts

enemies2 = this.physics.add.group({
            key: 'purple',
            repeat: 10,
            velocityY: CPUVelocity,
            bounceX: 1,
            collideWorldBounds: true,
            setXY: { x: enemyStartX / 2, y: 100, stepX: enemyStartX },
        });

enemies2.setVelocityX(25, 10);

I would like to make my enemies 2 group do yoyo movement instead of a just moving sideways and bouncing of each other. If that makes sense. I couldnt find a tutorial to how to make a tween for a this kinda group

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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