var c = new Color(0, 0, 0);Abort(typeof c) // objectAbort(c instanceof Color) // falseAbort(c.toString()) // ReferenceError: [name of last variable created with 'new Color()'] is not defined.
function Delay(ms) {var t = GetTime()+ms; while (GetTime()<t);} // uses Sphere-specific GetTime, no checking on `ms`
Well, in TurboSphere, the built in Delay function actually idles the engine and cedes the processor, so that it doesn't eat up all available CPU time. That's why I like it.
Yeah, I added DoesPersonExist to Sphere 1.6, or rather tung committed it for me since he had access to the then sourceforge version (but I remember he didn't like it originally since he believed what you can do in code should stay in code, and the interface between JS and the engine should only give you access to Sphere's features, and nothing else).
Yes, that could be done.I'd have to ask, though, since I don't normally do it that way: Does SetFrameRate just throttle the frame rate, or does it also try to catch up after lagging calls to FlipScreen?