Thursday, 25 January 2018

Stencyl: fixing NaN and [object][object]

Problem occurs in list in game attributes with save

1. to determine whether the attribute is a number
[object][object] + any number = NaN
[object][object] + Infinty = NaN
NaN + any number = NaN
NaN + Infinty = NaN
any number + Infinity = Infinity
1 + 1e17 = 1e17, Number can only hold up to 17 significant figures at anytime
1e288 + 1e308 = 1e308;


2. Reset progress
if you miss out this post this page is available https://stencyl-nator.blogspot.my/p/blog-page_96.html browse the "Fix mess, debug and reduce lag category"

No comments:

Post a Comment