# Is there a mod expression for construct 2

0 favourites
• 3 posts
From the Asset Store
Simple yet very life-like rag doll made with Physics!
• I've been following this tutorial called Build a Canabalt-Style Infinite Runner From Scratch () (he uses Multimedia Fusion 2)

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?

• 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:

- (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.

Construct 3 users don't see these ads
• 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:

>

> - (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