moayyad February 10th, 2014 Hi
i'm trying to work on the isometric tutorial, but when i run this line
this.load = function()
{
wade.loadImage('images/grass0.png');
wade.iso.init({numTiles: {x: 5, z: 5}});
};
I get this.
- Uncaught TypeError: Cannot call method 'init' of undefined VM52:6
-
-
-
-
-
-
-
(anonymous function)
-
which means that wade does not load the isometric plugin.
please help
Gio February 10th, 2014 Hi moayyad
That seems to suggest that it hasn't loaded the plugin. Have you added the script wade.iso.js to your index.html file?
On a side note. I would call wade.iso.init() from your app's init function rather than load
Gio February 10th, 2014 Apparently there was a problem with the download: depending on which page you downloaded the file from, it is possible that our server was sending you the wrong zip (one that contained an empty javascript file).
This issue has now been resolved, so if you were having any problems simply re-downloading the isometric plug-in should fix everything.
Apologies for any inconvenience this may have caused you.