I have experienced this error alot while scripting the Malorian baddy.
NOTE FOR SENSITIVE READERS: GS1
PHP Code:
if (created) {
// Stuff
timeout = .1;
}
if (timeout) {
// stuff...
Move();
timeout = .1;
}
function Move() {
// stuff...
move dx, dy, time, 8;
}
if (movementfinished) {
//STUFF
timeout = .1;
}
And unless the timeout in the 'movementfinished' is there, it wont execute the timeout.
Another example:
PHP Code:
if (created) {
// Stuff
timeout = .1;
}
if (timeout) {
// stuff...
Attack();
timeout = .1;
}
function Attack() {
//stuff..
sleep 3;
timeout = .1;
}
Unless the timeout is there after the sleep, well, you get the point by now.