Money in shop

00george

  • Posts: 161
I have spent a long time trying to make my money and score behaviour I want to have it so that the score increases when on the playing scene and when on the shop scene it takes the score and divides it by 10 then adds that to money. So far the score will increase on the playing scene but the money will not increase on the shop scene. Any help would be apprecated.

rob1221

  • *
  • Posts: 9474
I don't see you setting "playing" to false anywhere.  Also, you mention two scenes but post one behavior.  Is it attached to both scenes?

00george

  • Posts: 161
Yes it is attached to both scenes and there is a option so I can tick or untick "playing" on the scenes.

rob1221

  • *
  • Posts: 9474
I see you're setting money and score to 0 at the start of both scenes.  That's probably the problem.