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

2018/10/25

Start game countdown

Chipley Chipley

2018/10/25

#
Hi there i was wondering if you can add a delay or interval from when you press run and the programme starting because my game is to fast starting and want a countdown at the start. All replies will be appreciated.
danpost danpost

2018/10/25

#
Chipley wrote...
Hi there i was wondering if you can add a delay or interval from when you press run and the programme starting because my game is to fast starting and want a countdown at the start. All replies will be appreciated.
Yes, you can. There are multiple ways to implement it (from quite simple to code to elaborate). However, therein lies the question of which is best for what you want. Do you need (or want) your initial world to be visible during the countdown? If not, you can create an alternate world to do the countdown. Otherwise, you could restrict all actions while the countdown is running. Or, you could still create an alternate world that is built to appear to be the real world -- just that all actors are just dummy look-a-likes so that no action occurs during the countdown. That would be similar to my Pause World Class, which still needs to be updated for HTML5 compatability. EDIT: Pause World Class scenario has now been updated for HTML5 compatibility.
Chipley Chipley

2018/10/26

#
Ok so how would i make the world visible while the countdown is happening?
danpost danpost

2018/10/26

#
Chipley wrote...
Ok so how would i make the world visible while the countdown is happening?
I said:
you could restrict all actions while the countdown is running. Or, you could still create an alternate world that is built to appear to be the real world ,,, similar to my Pause World Class,
Chipley Chipley

2018/10/26

#
How would i be able to change the text on your pause World?
danpost danpost

2018/10/27

#
Chipley wrote...
How would i be able to change the text on your pause World?
You will find the text in the middle of the Panel class.
You need to login to post a reply.