SOLVED How do I round up/down variable in system?

Get help using Construct 2

Post » Wed Mar 02, 2016 10:20 am

for example i know how round up/down variable number when i need display on layout

textobjects set text to > floor(variable1)

and text show number rounded down

BUT how round number in system?
in event sheet i have something like this
when i run inspector this main variable is not rounded
its any way to do this?
Image

A1 A2 A3 A4 this is other variables, have own numbers
Last edited by delgado on Wed Mar 02, 2016 12:11 pm, edited 1 time in total.
B
113
S
29
G
48
Posts: 1,883
Reputation: 36,580

Post » Wed Mar 02, 2016 10:37 am

ceil((A1+A2+A3+A4)/6)

See it as SUM = (A1+A2+A3+A4), so it is ceil(SUM/6)
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Wed Mar 02, 2016 12:03 pm

@99Instances2Go just great!
B
113
S
29
G
48
Posts: 1,883
Reputation: 36,580


Return to How do I....?

Who is online

Users browsing this forum: VValt and 28 guests