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
109
S
25
G
43
Posts: 1,883
Reputation: 33,553

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
27
Posts: 2,447
Reputation: 20,358

Post » Wed Mar 02, 2016 12:03 pm

@99Instances2Go just great!
B
109
S
25
G
43
Posts: 1,883
Reputation: 33,553


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests