Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

this.game.math.chanceRoll is not a function


KelvinSP
 Share

Recommended Posts

I am trying to run the following example on my machine:
https://gamemechanicexplorer.com/#lightning-5

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.

Thanks

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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