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

2018/12/18

Problem with "Greenfoot.mouseClicked"

1
2
3
Nahquin Nahquin

2018/12/18

#
https://www.greenfoot.org/scenarios/22754 I made a new greenfoot and the click dosnt work there too. Looks like my greenfoot dont wanna do the thing
Nahquin Nahquin

2018/12/18

#
Wow i updated and in the page the button is working o.o
danpost danpost

2018/12/18

#
Nahquin wrote...
Wow i updated and in the page the button is working o.o
Insert the following like as the first line in BOTH the Snake class kocc_wall method and the SnakeP class kocc_snake method:
if (getWorld().getObjects(End.class).isEmpty()) return;
Nahquin Nahquin

2018/12/18

#
What do this?
danpost danpost

2018/12/18

#
Nahquin wrote...
What do this?
It prevents multiple End and Restart object from being placed into the world on top of each other. An over-abundance of actors can bog down the system and produce lag.
Nahquin Nahquin

2018/12/19

#
Hay. I wanna make a score world for the snake game. I tryed to know how to by ur space game(https://www.greenfoot.org/scenarios/12291) but cant really understand how u can store the scores when u reset the game u still have the scores can u help me a little?
danpost danpost

2018/12/19

#
Nahquin wrote...
I wanna make a score world for the snake game. I tryed to know how to by ur space game(https://www.greenfoot.org/scenarios/12291) but cant really understand how u can store the scores when u reset the game u still have the scores can u help me a little?
That game uses the UserInfo class, which allows data to be "permanently" stored in a database. The user must be signed in to make use of it. Although I created my own class for the scoring table, greenfoot does come with a ScoreBoard class that you can use. Use "Edit>Import class..." from the menu bar.
Nahquin Nahquin

2018/12/19

#
I added ur Stats from the Space game and edited it to the Snake world. Have a problem. When i upload and if i die in game it doesnt put done the score block. Why? In my pc it does.
Nahquin Nahquin

2018/12/19

#
Nvm find out it have to pic up minimum 1 apple
You need to login to post a reply.
1
2
3