formula for adding coin depends on 2 thing

0 favourites
  • 1 posts
From the Asset Store
112 High-Quality Coins and Chest SFX specially crafted for video games
  • hi

    my game have 3 resources : coin , medal , level

    player1 have: 100medal , 10level

    _

    when player1 win the game : game must add coin to him but it must be depends on medal and level of player1 and player2

    base formula : add level*10 coin to player1 so add 10*10=100coin (so if medal and level of two player be equal then player1 get 100 coin)

    but i want if player2 have more medal and level (like : player2: 200medal , 20level ) then player1 get more coin something like 200coin (number must depends on medal and level)

    _

    and if player2 have less then player1 medal and level (like : player2: 50medal , 5level ) then player1 get less coin something like 50coin

    what is the formula !?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)