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

danpost's Comments

Back to danpost's profile

@Roshan123, it is its own thing. Just replace a new class' complete codes with that one line.
@Roshan123, run scenario and click on 'About' button.
@Roshan123, Obstacle is not a class -- it is an interface which specific classes implement.
For not working, it may just be that you have an Object class. Try renaming it. Not sure why you used the try-catch structure.
Roshan123, both Wall and Tank classes implement the Obstacle interface.
@Olexandra, please start a new discussion thread on this issue.
@Olexandra, the "getActor" method may probably be better named as "takeActor" as that is what its partner portal is asking it to do. The link is made when the second constructor (the one with its partner portal passed to it) is used.
@jamesN616, apparently, there are static field issues (probably should not have static fields to begin with).
After adding actors into world, use the 'Save the World' function to automatically place them upon reset (main menu bar -- Controls >> Save the World)