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,301

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
1
Posts: 54
Reputation: 488

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
120
S
28
G
68
Posts: 4,844
Reputation: 48,289


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests