HeySofie / Capy-caring

school project, a simple web game
0 stars 0 forks source link

the shop model broke the farm??? #3

Closed HeySofie closed 1 year ago

HeySofie commented 1 year ago

last thing i remember is working on the shop model where u can buy uppgrades, and now the farm growing isent triggerd??

help

HeySofie commented 1 year ago

update:

this is the code that made the farm growing to not be triggerd im realy confused ngl

//house.addEventListener('click',open_shop ) //exit_button.addEventListener('click', close_shop ) //hottub_item.addEventListener('click', buy_hottub)

HeySofie commented 1 year ago

another update

i changed some small things in that code, now it look like this house.addEventListener('click', open_shop) exit_button.addEventListener('click', close_shop) hottub_item.addEventListener('click', buy_hottub)

and the thing that breaks it is this bit hottub_item.addEventListener('click', buy_hottub)

HeySofie commented 1 year ago

bruh, okie fixed it, the issue was that,