Jump to content

using multiple scenes


Rose Game Solutions
 Share

Recommended Posts

I'm using multiple scenes and trying to get a Heads Up Display (HUD) that is always active. I'm also using a sprite with anims. however, when I load the sprite into the scene, I get an error coming from animation.

 

here's my HUD class:

export default class HUDScene extends Phaser.Scene {
    constructor() {
        super({ key: "HUD", active: true });
    }

 and in my create method I'm just doing a simple constructor call

        this.HUD = new HUD(this.matter.world, 0, 0);

Is there another way to accomplish this? or, what am I missing/doing wrong?

the animations work in my 'gameScene' but not in the -always active- HUD scene...

Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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