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

2016/5/25

How to make text appear and conter

prifkin prifkin

2016/5/25

#
I need a way so when the if statement executes, I can make a line appear that says"Press space to respawn". Also, how can I make a counter that every time I collect a certain object, the counter goes up. This should be a visible counter.
jpcp8000 jpcp8000

2016/5/25

#
The text would go something like this..
{
showText("[Your Text Here]", Length/2, Width/2);
}
danpost danpost

2016/5/25

#
prifkin wrote...
I need a way so when the if statement executes, I can make a line appear that says"Press space to respawn". Also, how can I make a counter that every time I collect a certain object, the counter goes up. This should be a visible counter.
These are both a matter of displaying values (one is an integer value and the other is a string value). You could check out my Value Display Tutorial to see how this can be done.
You need to login to post a reply.