![]() |
keyDown check?
Hi,
i made a TDrawingPanel(in the TDrawingPanel there a GUIWindowCtrl that goes all over the screen and is on the top, for some reason the keydown check ( onKeyPressed, keyDown2 ) doesnt work anymore now XD how do i make em working again? |
PHP Code:
|
doesnt work =/
when i make () it says Quote:
|
Should be:
PHP Code:
|
Quote:
PHP Code:
|
doesnt work :<
|
Works for me..
|
and doesnt for me <.<
|
Maybe if you posted parts of the script so that we could try and see whats wrong?
|
nvm, does work now :P
|
is there a workaround for loop limit exceeded?
|
Quote:
|
how would i fill a [255][255] array then
|
Post your current loop that gets exceeded.. I'll see wut I can do.
|
NPC Code: thats my loop :P |
Quote:
PHP Code:
And make sure this.map is created already as an array. |
is there a fps counter in graal?
|
Frames Per Second? Not that I know off.
|
One could do:
PHP Code:
|
Quote:
|
Quote:
|
Quote:
NPC Code:for( this.dy = 0; this.dy < 128; this.i1++ ) You are adding this.i1 instead of this.dy, which I assume you meant to do. That is going to cause an infinite loop. |
yeah forgot to change this :P
still the loop won't work for 500x500 map arrays how is the loop limit calculated? is it just like at the end of every loop you do this.foobar++; and when this.foobar>=10000 echo("blub... limit exceeded..."); break; or something like this? |
Is there no builtin command that values the length of a <something>?
Like in Java, you can use Integer.MAX_VALUE or such.. Perhaps this.MAX_VALUE? Don't know.. try. |
huh?
contiga: what code tags? |
Quote:
|
Quote:
If you are just looking for the length of the current data, then yes, obj.length() is correct. |
Quote:
NPC Code:function blabla() PHP Code:
|
| All times are GMT +2. The time now is 02:53 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.