Jump to content

VirtualJoystick


Adalberto
 Share

Recommended Posts

Hello, I'm developing a game with Ionic 3.5 and PHASER-CE, I recently bought the VIrtualJoystick and when trying to implement I'm getting the error: this.game undefined.

ERROR (

core.es5.js:1084 ERROR TypeError: Cannot set property 'game' of undefined

    at Phaser.PluginManager.add (phaser-split.js:8917)

    at Fogo.webpackJsonp.274.Fogo.create (

)

Can you give me some help on how to implement this plugin.

PS, it's all in typescript

create()
{
    this.game.plugins.add(Phaser.Plugin.VirtualJoystick);
}

Thank you for your attention, I'm sorry, my English, because I'm in Brazil and my language is PT-BR

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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