formula for adding coin depends on 2 thing

Get help using Construct 2

Post » Sun Jan 31, 2016 12:31 pm

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 !?
Posts: 246
Reputation: 1,786

Return to How do I....?

Who is online

Users browsing this forum: Metathronos, ultrafop and 3 guests