how do i make a shop I have been wondering about this?
probably do something like
var shopItems = [
[obj, price, reward/rewardFunction]
]
lol that was fast ok there was a bug to when i played it
I mean, yeah, you are going to have to make an inventory system and stuff, that just stores data
like
let shopItems = [
["Name",btn,price,reward]
]
to store data in it, but you would have to script an engine to where I would do something like
player.inventory = [
["Sword",10,swordObj],
["Potion",10,potionObj]
]
yknow
10 being the amount of items
thank you very much sir i just gonna make everything free