Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: nohailokha on August 01, 2018, 12:09:47 PM

Title: lock and unlock levels and currency system
Post by: nohailokha on August 01, 2018, 12:09:47 PM
hi guys . i m new to game making i m doing well but i have 3 questions please
1- i dont know how can i add currency to the game?
2- how can i make levels locked and unlock a level by accomplishing the level before it?
3- how can i make cars locked to but unlock them with an amount off the currency?

i wish i can find any answers even for 1 question
Thanks first
Title: Re: lock and unlock levels and currency system
Post by: verybinary on August 01, 2018, 02:29:19 PM
1. a new variable. lets call it moneyint. If the player picks up money, moneyint = moneyint + pickedup
2. another variable. lets call it progressint. when player beats a level, progressint = progressint + 1 and when they try to go to another level check if progressint is equal to 1
3. when player tries to get in a car, if their moneyint is greater than carcost, then the door is opened