Hi John,
Yes, I want to put the character back on the ground after the 700
milliseconds, but I don't know how to make that bit of code wait until
the jump timer is finished without using a second while loop, which will
break execution of the rest of my script.
On 1/6/2016 16:13, john wrote:
Are you putting the character back on the ground?
--------------------------------------------------
From: "Gavin Grundlingh" <[email protected]>
Sent: Wednesday, January 06, 2016 4:33
To: "Gamers Discussion list" <[email protected]>
Subject: [Audyssey] Making a Character Jump In BGT
Hi all,
I'm trying to make a character jump in BGT. I managed to make it stay in
the air for the specified amount of time, but I can't figure out how to
make it land after that time has elapsed. I'll paste a code fragment below:
if (key_pressed (KEY_J))
{
if (Jumper.elapsed >= 700)
{
Jumper.restart ();
JumpSound.play ();
}
LandSound.play ();
}
I have a suspicion that I'm missing something stupidly logical to make
it work. Any feedback is appreciated.
Regards,
Gavin
---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to
[email protected].
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the list,
please send E-mail to [email protected].
---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to [email protected].
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the list,
please send E-mail to [email protected].
---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to [email protected].
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the list,
please send E-mail to [email protected].