X, Y = NaN, wat?

Discussion and feedback on Construct 2

Post » Sun Sep 13, 2015 6:26 am

After playing for a long time with my game, got a "ghost" object which isn't there but, somewhat, is still there o.O

I load the save with the debugger, identify the object (an animal), and realized it has both X and Y set as non numbers (NaN). I'm baffled by this as i have no idea what the heck happened and how that damn triceratops is in this situation.

So what i'm asking is if there is a condition that allows me to check if an object is in "NaN" X / Y, so i can at least catch the bug the very moment it happens!
B
65
S
22
G
4
Posts: 358
Reputation: 6,555

Post » Sun Sep 13, 2015 7:49 am

There's a System condition "Is number NaN" that you can use to breakpoint or output as log
Image
Game Producer & Independent Developer - http://raphaelgervaise.com
B
23
S
9
Posts: 237
Reputation: 2,207

Post » Sun Sep 13, 2015 9:08 am

@Refeuh

Wah i missed it xD Going to hunt down that bug, whish me luck!
B
65
S
22
G
4
Posts: 358
Reputation: 6,555


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests