Get the remainder

Discussion and feedback on Construct 2

Post » Fri Jul 22, 2011 11:57 pm

Hi

Is it possible to get the remainder of a division using expressions currently in C2 ? If not, would it be possible to add it in the next release ?

Thanks a lot (Ashley) :D
B
6
S
2
G
1
Posts: 122
Reputation: 1,194

Post » Sat Jul 23, 2011 12:05 am

I think using the '%' (percent) operator will give you the remainder. For example 13%3 will give you 1 as remainder.
B
9
S
3
G
3
Posts: 366
Reputation: 2,306

Post » Sat Jul 23, 2011 12:09 am

Thanks abhilash it works!

I should have remembered my old programming lesson about the % operator.. shame on me :)Djordhan2011-07-23 00:09:26
B
6
S
2
G
1
Posts: 122
Reputation: 1,194

Post » Mon Mar 02, 2015 10:11 pm

How would you go about doing the old Zelda Style of having a heart be four pieces? I have a heart I split up into four animations and can back and forth between them but when I try and do more than one it edits them all. - Will Repost
Last edited by MythStylz on Mon Mar 02, 2015 10:24 pm, edited 1 time in total.
B
9
S
2
Posts: 54
Reputation: 638

Post » Mon Mar 02, 2015 10:15 pm

@MythStylz

Why have you posted your unrelated query in a thread that's nearly 4 years old?

You would get a much better response by starting your own thread in the 'How Do I' section.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
131
S
29
G
81
Posts: 5,328
Reputation: 56,630

Post » Sat May 06, 2017 12:31 am

@abhilash2863

Thank you ... I just happened to have this question.

@MythStylz

Do you still need help on this problem? If so, I think I have an answer.
All of the images in any of my games are self-created.
B
16
S
4
Posts: 12
Reputation: 935

Post » Mon May 08, 2017 7:17 pm

@PixelByPixel
This is 2 years old,
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,461


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests