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


Welcome to my page

Shiho's collections

This user has no collections

Recent Comments | Show All

Added the source. I apologize for the rarely used comments.
I used a counter to check how many steps they already have done. After 8 steps I said go down(getY() -1) and then move 18 steps ahead and move down again. I had all 3 alien types as a subclass of AlienAnimated. In this "upperclass" I wrote one method with the mentioned counter. All subclasses just uses this "move();" method in the act()