This site requires JavaScript, please enable it in your browser!
Greenfoot back
MissionAccomplish
MissionAccomplish wrote ...

2016/10/10

how to add a time limit to my game

MissionAccomplish MissionAccomplish

2016/10/10

#
i want my game to freeze after 60 seconds and show time up/over (even show the countdown' / time left on the screen) help me!
private void timer()
{
      help me get timer;
}
danpost danpost

2016/10/10

#
Please supply valid attempted code and a detailed explanation of what part you are having issues with. Freeze game with:
Greenfoot.stop();
Refer to my Value Display Tutorial for the timer: here. The tutorial may be helpful for the game over text as well.
MissionAccomplish MissionAccomplish

2016/10/11

#
i wish too get a reversed counting from 60 to 1 and once it reaches zero ,th game should stop and sshow game over(my game over text is ready)
danpost danpost

2016/10/11

#
Use a simple actor object, an int field, initialized to 3300 (approximately the number of acts executed in 60 seconds with a scenario running at normal speed -- speed slider in the middle), and a method, called from the 'act' method, to decrement the int field and update the image of the actor when needed. This is pretty well explained in the tutorial section 'Using a basic Actor object'.
MissionAccomplish MissionAccomplish

2016/10/11

#
Can you make me a code , THAT would be a great help
You need to login to post a reply.