Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Pixelbox

Create 2D games in JavaScript, made easier · By Cedric Stoquer

Index.js has an error???

A topic by Dudeguy1 created Jan 25, 2021 Views: 168 Replies: 1
Viewing posts 1 to 2

Didn't even touch it at all and Index.js somehow has an error and now my project doesnt work 

index.js:2628 Uncaught TypeError: Cannot read property '_isSprite' of undefined
    at Texture.draw (index.js:2628)
    at pixelbox.draw (index.js:4504)
    at Object.21.pixelbox/TileMap (index.js:4263)
    at o (index.js:4)
    at index.js:4
    at onAssetsLoaded (index.js:4583)
    at onAssetLoaded (index.js:3944)
    at Image.img.onload (index.js:3817)

I’m not sure what is happening exactly, but my guess would be that an image that was used by a tilemap has been deleted or moved. Try to find which map causes this problem and unlink its assigned tilesheet from the editor.