This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
HAHAHAHAA
wrote ...
2022/5/10
Wait function
HAHAHAHAA
2022/5/10
#
I have a game, where if I click the up key, I want the actor to stop moving, hen after one one second, I want the whole game to stop.
danpost
2022/5/11
#
HAHAHAHAA wrote...
I have a game, where if I click the up key, I want the actor to stop moving, hen after one one second, I want the whole game to stop.
Do not use the
wait
method within greenfoot. It is a thread operation and may mess up the execution of greenfoot itself. Use:
Greenfoot.delay(60);
You need to login to post a reply.
X