Im working on a big project and im trying to make it that if the player gets overlapped by a specific enemy in a chase sequence, it would spawn the player in another tilemap, but when im spawned into the tilemap, if i overlap with any tile or just explore it, it says something “program error: failed to cast on null” and the game crashes, please someone help me
3 Likes
we need the game
2 Likes
my prayer has been answered ( sorry for that woof woof I kinda don’t know how to use js)the error is because it cant work usually the player sprite hasn’t been set
Does the other code in the game happen to require certain tiles to be present on a tilemap for it to work?
That might be the case.
No i don’t think so
Ok thanks