Converting floats to integers

Get help using Construct 2

Post » Sat Jan 18, 2014 12:11 pm

Like the title says. How do I do this with events? I tried: ((Player.X + 0.5) | 0) ... but that didn't work. Ideas?ErekT2014-01-18 12:11:51
B
39
S
16
G
6
Posts: 542
Reputation: 7,617

Post » Sat Jan 18, 2014 12:14 pm

round()
floor()
ceil()
int()
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Jan 18, 2014 12:18 pm

Yay! Thank you :)
B
39
S
16
G
6
Posts: 542
Reputation: 7,617


Return to How do I....?

Who is online

Users browsing this forum: richcoz81 and 47 guests