Conditional structure

Discussion and feedback on Construct 2

Post » Mon Mar 03, 2014 1:36 pm

Dear,
how to do a comparison using % in C2? Did not want to do this through code but visual :D

Example:
Code: Select all
if (score % 2 == 0)
{
    speed *= 2;
}
B
5
G
1
Posts: 23
Reputation: 398

Post » Mon Mar 03, 2014 1:54 pm

Image

You'll need other code to call it only when needed, but this is the equivalent.

Use System:Compare two values
ImageImageImage
B
71
S
22
G
248
Posts: 3,761
Reputation: 138,073

Post » Mon Mar 03, 2014 2:04 pm

Perfect!!! Thks
B
5
G
1
Posts: 23
Reputation: 398


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 12 guests