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
ninjapuffin
wrote ...
2021/1/17
How to make an object respawn after being clicked
ninjapuffin
2021/1/17
#
Hey fellas, hevent done Greenfoot in a while and i'm having a struggle on making an object respawn after being clicked
danpost
2021/1/17
#
ninjapuffin wrote...
Hey fellas, hevent done Greenfoot in a while and i'm having a struggle on making an object respawn after being clicked
Need more information -- general and specific. What is your general objective? What limitations do you want or need? etc.
ninjapuffin
2021/1/17
#
my objective is to make a game where you click a banana and it disapears. and ti need help w/ spawning more bananas after one is clicked
ninjapuffin
2021/1/17
#
ninjapuffin wrote...
my objective is to make a game where you click a banana and it disapears. and ti need help w/ spawning more bananas after one is clicked
can you give me some code to use
danpost
2021/1/17
#
ninjapuffin wrote...
my objective is to make a game where you click a banana and it disapears. and ti need help w/ spawning more bananas after one is clicked
In
MyWorld act
method:
if (getObjects(Banana.class).size() < 1) addBanana();
An
addBanana
method is to be added also.
You need to login to post a reply.
X