Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I figured out the Money adding problem, this code under is the fix


func _on_add_money_pressed():

PlayerData.addMoney(int(moneyAmt.text))

#PlayerData.force_unequip("underwear")

#PlayerData.p_data["underwear"]["messy"]=true

#PlayerData.p_data["underwear_messy"] = true

#PlayerData.p_data["underwear_current"] = 20

and the old code was 

func _on_add_money_pressed():

#PlayerData.addMoney(int(moneyAmt.text))

PlayerData.force_unequip("underwear")

#PlayerData.p_data["underwear"]["messy"]=true

#PlayerData.p_data["underwear_messy"] = true

#PlayerData.p_data["underwear_current"] = 20

You had The hastag for Add money and Unequip swapped. Its a simple fix!

when I try to do this, the game gives me an error.

It does it, You gotta delete the game because you prob changed another part of the code on accident, So re install the game and be weary