Find greatest variable

0 favourites
  • 3 posts
From the Asset Store
Easily store, modify, read and manipulate colors with Color Variables!
  • Hey friends,

    can you please help me?? I have about 6 global variables and I need to find out which is the biggest at the end of the game.

    Is there any other possibility than

    Variable 1 > Variable2 --> do this and that

    Variable 1 > Variable3

    Variable 1 > Variable4

    Variable 1 > Variable5

    Variable 1 > Variable6

    that is not necessary I guess, perhaps someone got a hint for me :)



  • You could something like this:

    global number max_value=0

    every tick:

    Set max_value to max(var1,var2,var3,var4,var5,var6)


        do stuff


        do stuff


        do stuff


        do stuff


  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Too bad, that i can�t serve a beer via internet, but you would defly deserve it :)

    THANKS 1000 TIMES, works super fine :)

    used it, to complete my match statistics for my arena shooter

    <img src="smileys/smiley32.gif" border="0" align="middle"> ;-)

    keep up the good work, everybody and special thx to ROJOhound :)



Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)