DaniDaCoder im trying to make a shop system for find a job and pay your taxes and i was going to use: if (mousePressedOver("city")) { bg.setAnimation("shop"); } but when i tryed to click the sprite it gave me an error TypeError: e.setDefaultCollider is not a function
Blockyheadman DaniDaCoder you sure that's the line its giving you the error on. it should say the line and where it fails. and try looking at all the other things that are used in and with that area of failure. it could be a messed up name. I could be off, i'd like to see code to see how i could help. you can send it to me on pm and i can take a look at what the issue is
DaniDaCoder i put the sprite animation instead of the thing you declare the sprite by so i should have wroteif(musePressedOver(bg)
person ah ok so rather than changing the overall background entirely, just teleport to a new (x,y) coordinate far far away.