Jump to content

this.game.math.chanceRoll is not a function


Recommended Posts

I am trying to run the following example on my machine:

The effect works but the thunder is not showed. I'm getting this error from the browser console:

Uncaught TypeError: this.game.math.chanceRoll is not a function

In my structure I have the assets folder with all images, the main.js file with the game logic, the index.html and the phaser.min.js file.

Note: I'm very newbie on Phaser, then please explain to me what is happen and what can I do.


Link to comment
Share on other sites


  • Recently Browsing   0 members

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