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

What is happening right now?


reply to Class removed after creating duplicate

By danpost - about 2 hours ago
The only way the Crab class would show up in the "Other classes" area is if you removed what class it extended or changed it to something other than Actor or World. Just make sure you have the class extending the Actor class. If you have issues with bringing it back, post the code for the class so we might be able to tell what is happening and why it is not showing up where you want it to.

reply to Array Problem

By Rabe123 - about 5 hours ago
Thank you danpost :)

reply to Bullet Hoses

By danpost - about 5 hours ago
@SPower, I see where you see an assignment symbol ( '=' ) in place of a conditional equality symbol ( '==' ); however, it will never actually change the value there as it was just set to 'true' in a previous line. What this means is that the question does need to be asked. Removing lines 9, 10 and 14 will not change what the code does. Also, a timer is not what ZacBuzzsaw is going to need -- a boolean field is indeed what is wanted (like the 'isShot' field), but the way it is used is incorrect (hence, its name is also misleading). The field should track the state of the "space" key or should be named something like 'spaceDown' and its value should be changed anytime its current value is not the current state of the key. During a change in value, if changing to true, a shot can be fired: <Code Omitted>