Jump to content

Erro with bitmapText


Iszard
 Share

Recommended Posts

in 2.4.6 phaser there is an error with bitmapText

lines 46318 - 46320

bitmapText: function (x, y, font, text, size, group) {

            if (group === undefined) { group = this.world; }

            return group.add(new Phaser.BitmapText(this.game, x, y, font, text, size));

        },

 

It does not suppoer the 'align' param as documented. From the doc the following should be the correct code.

bitmapText: function (x, y, font, text, size, align, group) {

            if (group === undefined) { group = this.world; }

            return group.add(new Phaser.BitmapText(this.game, x, y, font, text, size, align));

        },

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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