playMaker

Author Topic: Solution to coin collect update score  (Read 1903 times)

Jatoblendy

  • Playmaker Newbie
  • *
  • Posts: 10
Solution to coin collect update score
« on: January 26, 2022, 05:31:47 PM »
Pls I really need help I'm building a game have set coin pick up but I can not save the current update count if player collect coin the counting cannot save I use playerpref get int  and also use playerpref set int, still don't save is there any tutorial explain better to solve this problem pls help

Stain Corb

  • Junior Playmaker
  • **
  • Posts: 74
Re: Solution to coin collect update score
« Reply #1 on: January 26, 2022, 05:55:00 PM »
Just out of curiousity try this same setup you have but not on a prefab, Sounds like it should work but I know that some stuff wont work directly on prefabs when they are instanced.

I use Set Int and Get Int all the time.

Jatoblendy

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Solution to coin collect update score
« Reply #2 on: January 27, 2022, 02:22:18 AM »
Thanks bro for your response I have tried it several time but is not working don't know how to fixed it I have been on it now more than a week now

Stain Corb

  • Junior Playmaker
  • **
  • Posts: 74
Re: Solution to coin collect update score
« Reply #3 on: January 27, 2022, 08:33:03 AM »
Hey, can you show a screen shot of what is going on. this can give me a better idea.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Solution to coin collect update score
« Reply #4 on: January 27, 2022, 10:13:05 AM »
Hi.
When you start the game, is it getting the data first?
Also makes sure that they key from get/set is the same

Jatoblendy

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Solution to coin collect update score
« Reply #5 on: January 28, 2022, 04:53:22 AM »
That's the image of the work I was working on pls help me out

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Solution to coin collect update score
« Reply #6 on: January 28, 2022, 09:22:32 AM »
Hi.
You need to Get int 1st then int add Then Set int.