Jump to content

Problem with Installing Plugin


lifesuxtr
 Share

Recommended Posts

I am trying to install this plugin :

https://github.com/matthiaswh/phaser-health-meter

I put js file into this directory:

y2089PpRR6ygdkhgHqo8DA.png

Included it as : 

import {HealthMeter} from "phaser-ce/src/plugins/healthMeter"

 

And as mentioned in documentation:

this.player.health=50;
  this.player.maxHealth = 100;

  this.playerHealthMeter = this.game.add.plugin(Phaser.Plugin.HealthMeter);
    this.playerHealthMeter.bar(
        this.player,
        {x: 20, y: 100, width: 100, height: 20}
    );

This is the error:
ely4xp12Qvu-HPG95t54fg.png

 

I guess im putting js file to wrong directory

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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