Skip to content

Fishing.io

3 posts

RE: Fishing.io

Posted Aug 8, 2021 5:53 pm




PlayerMoney -= b

add PlayerMoney += b

its upgrade, add money

example

OnPressedBuyNetSize: function () {
            if (PlayerNetSize >= MAX_FISHES_HOOKED)
                soundManager.playSound("not_enough_money"), SetPoingScaleTween(txtNetSizeVal);
            else {
                var b = SceneGame.instance.getUpdatePriceNetSize();
                PlayerMoney < b ? (soundManager.playSound("not_enough_money"), SetPoingScaleTween(txtMoneyVal)) :
                (textParticles.CreateTextParticle1(game.width / 2, sprFisherman.y + 50, "-" + b + "$", 40, "#cb230b", 0), soundManager.playSound("zakupenie_item"), PlayerMoney += b, PlayerNetSize++, GameData.Save(), fishesToCatch = PlayerNetSize, txtBucketVal.text = "" + fishesToCatch, SetPoingScaleTween(txtBucketVal), textParticles.CreateTextParticle1(btnGameBuyNetSize.worldPosition.x, btnGameBuyNetSize.worldPosition.y - .6 * btnGameBuyNetSize.height, "+1", 40, "#296092", 0), SceneGame.instance.updateShopUIValues(), "undefined" !== typeof gdsdk && "undefined" !==
                    gdsdk.showAd && gdsdk.showAd())
            }
        },

RE: Fishing.io

Posted Sep 8, 2021 7:09 pm

looks easy to fix money.

Thanks. jowback