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

2014/4/21

problem with at world edge method help me plz

nona nona

2014/4/21

#
i extend mover class all its methods work except atWorldEdge why it doesn't work ?
danpost danpost

2014/4/21

#
How are you using it? Show your code.
nona nona

2014/4/21

#
public void act() 
    {
 move(4);
 if (atWorldEdge())
 {turn(12);
    }
    }    
nona nona

2014/4/21

#
well it's only work at on edge
danpost danpost

2014/4/21

#
nona wrote...
well it's only work at on edge
I am not sure I understand. What are you wanting the actor to do and how is it not doing it?
You need to login to post a reply.