Jump to content

Moving a group.


jake.caron
 Share

Recommended Posts

Hi All,
I just switched from Phaser 2 to Phaser 3 today and I am running into a group issue. I am trying to move a group on the x or y axis, however it's not actually moving.

Parent

//*******SCENE STUFF***********//

create() 
{
    this.sun = new Sun(this);
    this.sun.x = this.size.width * .5;
}

//*******SCENE STUFF***********//

Child

export default class Preloader_Sun extends phaser.GameObjects.Group
{
    constructor(scene)
    {
        super(scene);
        this.mainImage = this.create(0, 0, 'preloader_sun').setOrigin(.5);
    }
}

Any thought on what might be happening?

Thanks!
Jake

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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