Uncaught TypeError: Cannot Read Property gridCoords of undefined (isoCharacter.js 382:48)

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){

Thanks in advance for your help.


All 2 Comments

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.




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:


Post a reply
Add Attachment
Submit Reply
Login to Reply