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

What is happening right now?


reply to Spawing an actor if an actor is removed

By Super_Hippo - 3 minutes ago
This places a Door at the position of the Boss. Make sure to have this line before you remove the object. <Code Omitted>

reply to Help, cant change the Image of a class!

By LplayerJohnny - about 1 hour ago

reply to How to Switch Between Background Smoothly

By NightPhoenix828 - about 5 hours ago
Thanks! Now that I look at your code, I have no idea what I was trying to do. Let's just say it's been a long week. XD

reply to Shooting actor. NEED HELP!

By Super_Hippo - about 9 hours ago
I would probably keep the Zombies (each row separately) in a ArrayList in the world. So whenever a Zombie is added to a row, it is also added to the ArrayList of the row in which it is added. When it is killed, it is removed from the ArrayList again. Then you can check if the ArrayList contains any elements and if so, the plant shoots.

reply to actor rotation with arrows

By Super_Hippo - about 9 hours ago
Get the MouseInfo with "Greenfoot.getMouseInfo()" and call the method "getButton" on that MouseInfo. 1 is the left button and 3 is the right one. You can find the API here:

reply to Problems with playsound

By loldertroll - about 15 hours ago
ty that helped