playMaker

Author Topic: lock and unlock levels and currency system  (Read 1189 times)

nohailokha

  • Playmaker Newbie
  • *
  • Posts: 8
lock and unlock levels and currency system
« 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

verybinary

  • Junior Playmaker
  • **
  • Posts: 81
    • The Museum of Digital
Re: lock and unlock levels and currency system
« Reply #1 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