playMaker

Author Topic: Money system  (Read 1299 times)

Ayman

  • Playmaker Newbie
  • *
  • Posts: 24
Money system
« on: August 15, 2018, 10:30:16 AM »
Hi guys what i want to do is when the player finish the level get the amount of money i set . And when he goes to next level the money not reset (stay saved) . Sorry for my bad english and thaanks

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Money system
« Reply #1 on: August 15, 2018, 12:06:42 PM »
Save it in global variable.
Available for Playmaker work

Ayman

  • Playmaker Newbie
  • *
  • Posts: 24
Re: Money system
« Reply #2 on: August 15, 2018, 02:19:55 PM »
Thanks, but still confused ho can i make when the level complete the player get money .  Can you tell me exactly what should i do

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Money system
« Reply #3 on: August 15, 2018, 03:16:24 PM »
Make a new local int variable named "money"
Change local variable to global variable
At the end of the level use int add x to y, where x is the amount of money you want add, and y is global int variable money.
Available for Playmaker work

Ayman

  • Playmaker Newbie
  • *
  • Posts: 24
Re: Money system
« Reply #4 on: August 15, 2018, 07:55:35 PM »
Okay thank you i m gonna try