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
moraisai
wrote ...
2015/3/11
How can I spawn something at a specific amount of scoreline
moraisai
2015/3/11
#
Hello I need help for my greenfoot project. How cann I add an object at a specific scorew on my counter
danpost
2015/3/11
#
Be more specific. Show what you tried, code-wise. Cannot fix code without seeing it.
moraisai
2015/3/11
#
I made this: if (spawner==5) { boss1 boss1= new boss1(); getWorld().addObject(boss1, getX()+60, getY()+60); } The problem is that I spawn many bosses instead of just one
danpost
2015/3/11
#
Add another condition to the 'if' statement:
if (spawner == 5 && getWorld().getObjects(boss1.class).isEmpty());
moraisai
2015/3/11
#
thanks
You need to login to post a reply.
X