How to do it in GS2:
PHP Code:
function onCreated() {
for (this.i=0; this.i<10; this.i++) {
this.chat = temp.i;
sleep(1);
}
}
well IŽd use temp.i rather than this.i if you will just need it in the onCreated() part.
|
your game of the obvious is here by accepted.
How to count from 10 to 1 in GS2:
PHP Code:
function onCreated() {
for (this.i=10; this.i>=0; this.i--) {
this.chat = temp.i;
sleep(1);
}
}