sebashwa / phaser3-plugin-isometric

Feature-packed axonometric plugin for Phaser 3 which stays true to the Phaser API.
https://sebashwa.github.io/phaser3-plugin-isometric
MIT License
172 stars 36 forks source link

Cannot read property 'setTo' of undefined #4

Closed Josema closed 6 years ago

Josema commented 6 years ago

Hi, I'm getting an error using the IsoProjectionExample example. On this line this.iso.projector.origin is undefined: https://github.com/sebashwa/phaser3-plugin-isometric/blob/master/docs/src/IsoProjectionExample.js#L23

App.js:33 Uncaught TypeError: Cannot read property 'setTo' of undefined
    at IsoProjectionExample.create (App.js:33)
    at SceneManager.create (SceneManager.js:612)
    at SceneManager.loadComplete (SceneManager.js:506)
    at LoaderPlugin.emit (index.js:183)
    at LoaderPlugin.loadComplete (LoaderPlugin.js:933)
    at LoaderPlugin.fileProcessComplete (LoaderPlugin.js:889)
    at ImageFile.onProcessError (File.js:416)
    at Image.data.onerror (ImageFile.js:139)

I am not using the bundle version, I am using the npm package with webpack.

sebashwa commented 6 years ago

Hey Josema,

I just updated phaser to the latest version in my examples and they still work fine. Can you provide a little bit more context?

Cheers

Josema commented 6 years ago

When I open the issue I was using the 0.0.1 version. Now with the 0.0.6 is solved.

Solved here: https://github.com/sebashwa/phaser3-plugin-isometric/commit/cddc32e5c264c40e2e3af3f01a461dada7777312#diff-5225eec1aab4061d985e18c0b6bac091R24