lifesuxtr Posted November 17, 2017 Share Posted November 17, 2017 I am trying to install this plugin : https://github.com/matthiaswh/phaser-health-meter I put js file into this directory: 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: I guess im putting js file to wrong directory Link to comment Share on other sites More sharing options...
Recommended Posts