Is there a mod expression for construct 2

0 favourites
  • 3 posts
From the Asset Store
Casino? money? who knows? but the target is the same!
  • I've been following this tutorial called Build a Canabalt-Style Infinite Runner From Scratch () (he uses Multimedia Fusion 2)

    youtube.com/watch?v=I05TDijQx-Q

    and around the 13.06 he uses an expression called modulus (mod) and i been looking but can't find anything like that for construct 2.

    Is there anything like that or similiar that I can use?

  • uzmaaaaan

    Modulus is % in Construct 2

    e.g. 12%10 = 2

    See manual on Expressions and look under Operators

    Operators

    You can use the following operators in expressions:

    + (addition)

    - (subtraction)

    * (multiplication)

    / (division)

    % (modulo, remainder after division)

    ^ (raise to power, e.g. 5 ^ 2 = 25)

    & (build strings, e.g. "Your score is: " & score)

    There are also comparison operators =, <>, <, <=, >, >= for comparing values. They return 1 if the comparison is true or 0 if false.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • uzmaaaaan

    Modulus is % in Construct 2

    e.g. 12%10 = 2

    See manual on and look under Operators

    > Operators

    > You can use the following operators in expressions:

    >

    > + (addition)

    > - (subtraction)

    > * (multiplication)

    > / (division)

    > % (modulo, remainder after division)

    > ^ (raise to power, e.g. 5 ^ 2 = 25)

    > & (build strings, e.g. "Your score is: " & score)

    >

    > There are also comparison operators =, <>, <, <=, >, >= for comparing values. They return 1 if the comparison is true or 0 if false.

    >

    thank you

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