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

2018/3/18

Space Invaders - pls help DANPOST

DanPOstLOver DanPOstLOver

2018/3/18

#
In my space invaders code I need the aliens to move down when they hit the edges of the screen. I was hope someone could give me some code to help me <3
Vercility Vercility

2018/3/19

#
If(isAtEdge())  {
setLocation(getX(), getY() +5);
} 
danpost danpost

2018/3/19

#
DanPOstLOver wrote...
In my space invaders code I need the aliens to move down when they hit the edges of the screen. I was hope someone could give me some code to help me <3
Please refer to my Space Invaders Movement Demo scenario.
You need to login to post a reply.