![]() |
keydown, float, and more.
When checking if the direction keys are pressed,
PHP Code:
e: Nevermind the above. Thanks, Jazz. Additionally, PHP Code:
e: Another bug just recently discovered. sleep-like functions are messing up the callstack. The specifics are:
In as terse a script as possible: PHP Code:
|
As for the keydown thing, thats not a limitation of Graal, thats a limitation of your keyboard.
My keyboard allows me to press left, right, and down at the same time. (So with your script, it = 3) But I cannot do up/down/left. However, if I use the num keys, I can do all four directional buttons at once. (The script outputs 4) So, yeah. |
Quote:
|
The thing about float(string) is that it's only returning 0 if the string is really "0". That way you can check if it's a number and not a name or so. May be it could also allow "0.0" (but then you complain about 0.0000 i guess :D
I can check the problem with sleep(). The thing is that waitfor() is working fine, so it might be a problem of the sleeping object not being active (some this.trigger("update",""); or so could fix it). |
Quote:
e: The call stack is only severed at the call from script A to script B. The call stack is intact for any function calls within B. What I have looks like this: A PHP Code:
B PHP Code:
|
Well in that case it might a problem that your TStaticVar has no name... Would be good to check that. We are using tons of waitfors in other objects (database queries) and never had problems with that.
|
Quote:
e: This mimics exactly the problem I've been having: PHP Code:
PHP Code:
|
Well this might be more a problem of your use of function pointers, just tried simply to se script classes?
|
Quote:
|
Ok the problem is that a script-less object cannot continue after sleep or waitfors, will be fixed in the next version.
|
Quote:
|
Nice!
|
| All times are GMT +2. The time now is 11:36 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.