How do I do complex math formulas

0 favourites
  • 8 posts
From the Asset Store
Aliens are invading our planet! Solve the math question, and attack the alien with your laser. Covers addition, subtract
  • Hi,

    How do I do complex math formulas like the one here:

    http://clickerheroes.wikia.com/wiki/Formulas

    check the one with PRODUCT. I need to use for loop or there is another way.

    Thanks

  • Yes, you need a loop.

  • Hi,

    How do I do complex math formulas like the one here:

    http://clickerheroes.wikia.com/wiki/Formulas

    check the one with PRODUCT. I need to use for loop or there is another way.

    Thanks

    From Level 1 to Level 140:

    ( 10* ( (Level- 1) + 1.55 ^ (Level-1) ) * (isBoss * 10) ) this should work.

    From Level 141 to Level 500:

    (10 * ( 139 + (1.55^139) ) * (1.145 ^ ( Level-140 ) ) * ( isBoss* 10) ) this should work also.

    From Level 501 onwards:

    i dont know what the II sign means... its product of the above and beneath number however dont know how is represented in C2. probably is ceil() system expression but im not sure.

    edited : since the sign with double II is pi

    (10*(139+(1.55^139))* (1.145^360)* (pi/(i=501^Level))*(1.14+0.005)*(pi/(i/500))* (isBoss * 10)) - im not sure this will work... but you can test it out.

    edited again: (pi/(i/500)) i think should be calculated with atan(i/500)

    In which II is the product symbol or pi in C2 and [] are ceiling brackets.

    Edited 5 or so:

    continuing with my stupidity probably

    Hero Cost Formula (cost of upgrading from "Level")

    The cost to level up Cid-Summer Cid, the Helpful Adventurer from level 1 to 15 is:

    floor((5 + Level) * 1.07^Level - 1)

    The cost to level up Cid-Summer Cid, the Helpful Adventurer from level 16 is:

    floor(20 * 1.07^Level - 1)

    The cost to level up other hero by one is:

    floor(BaseCost * 1.07^Level - 1)

  • There is no times() expression in C2.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There is no times() expression in C2.

    i think there is ... ^ this is raising times (number after it)... you should check the power of 2 for audio i always use FFTsize 2^15 which is = to 32768 maximum fftsize allowed by c2 audio.

    times expression in C2 is * <-- 10 times 2 = 20 if you do 10*2 youl get 20 in c2

    here is a capxthat demonstrates that.

  • The product symbol means a for-loop. You just changed your post to say you don't know what the Product symbol means - it means you have to do a loop, from the number on the bottom to the number on the top, because the index is used in the enclosed expression.

  • The product symbol means a for-loop. You just changed your post to say you don't know what the Product symbol means - it means you have to do a loop, from the number on the bottom to the number on the top, because the index is used in the enclosed expression.

    yea i did said that i dont know what the [] big sign means i just said that... never changed the meaning of that ... i changed the text where i was expressing myself to harsh maybe and making you think im telling u something that there isnt...

    my point is in the capx above.. raising at ^ power is a expression in C2 the [] sign i dont know what it is probably is ceil but its probably not.

    and times expression is there also which is * this means times something maybe we miss understood each other.

    Edited: now i see what you where saying, the times() i used i missed on changing or remove it, its the * sign if you copy paste the formula from the page he gave, you get times() instead of * its just a typo lol.... miss understanding at its best. ha ha

    edited2: here is the copy pasted data from the website shared originally directly from website using ctrl+c and ctrl+v to paste

    \left \lceil 10\times(Level-1+1.55^{Level-1})\times [isBoss\times 10] \right \rceil <--- hence the times ... i forgot to remove... not a big deal.

    edited that is pi lol the product symbol just googled it... my math skills are rusty. also its pi sigma to use it properly which i dont think C2 has.

  • Ok, thanks, I guess a loop is the only way to do it

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