Jump to content

game.load.video is not a function (Phaser 2.4.7)


DevJ
 Share

Recommended Posts

Good morning,

I've been trying to load a video on my load.js file, from the assets folder using: 

preload: function(){game.load.video('backMenu', 'assets/backMenu.mp4');}

Like they do here: http://phaser.io/examples/v2/loader/load-video

But it doesn't work. The console throws the error: Uncaught TypeError: this.game.load.video is not a function

I'm using Phaser 2.4.7, any ideas what could it be? Thanks.

Link to comment
Share on other sites

20 hours ago, DevJ said:

Good morning,

I've been trying to load a video on my load.js file, from the assets folder using: 


preload: function(){game.

Sorry for wasting your time, I eventually figured out I wasn't loading the right Phaser.min.js and it was version 2.0.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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