Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Ayman on August 15, 2018, 10:30:16 AM

Title: Money system
Post by: Ayman 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
Title: Re: Money system
Post by: Fat Pug Studio on August 15, 2018, 12:06:42 PM
Save it in global variable.
Title: Re: Money system
Post by: Ayman 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
Title: Re: Money system
Post by: Fat Pug Studio 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.
Title: Re: Money system
Post by: Ayman on August 15, 2018, 07:55:35 PM
Okay thank you i m gonna try