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

2013/5/22

Help

FCG FCG

2013/5/22

#
I have all my kill methods. How would I write a code where if the actor touches bottom of the screen it dies.
danpost danpost

2013/5/22

#
if ( getY() >= ( getWorld().getHeight() - getImage().getHeight() ) / 2 ) {
    /* execute kill method here */
}
You need to login to post a reply.