Uncaught TypeError: Cannot Read Property gridCoords of undefined (isoCharacter.js 382:48)
alokofaarmax January 26th, 2019 Friends. I am new at this and I was trying the Isometric Adventure tutorial but I am getting an error mentioned above in the following line
wade.app.onIsoTerrainMouseDown = function(data){
_.swordsman.getBehavior('IsoCharacter').setDestination(data.gridCoords);
}
Thanks in advance for your help.
alokofaarmax January 27th, 2019 I realized what I was soing wrong. I had pulled up into the scene a swordsman sprite from tilesets/iso_characters/swordsman folder and not from iso_characters.prefab folder. This was creating the issue even after I had added the IsoCharacter behavior to that sprite.
Gio January 28th, 2019 Hi alokofaarmax
I'm glad you sorted it out. Just to clarify, if you want to use any object as an isometric object, you have to set it up correctly in its Properties tab:
