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

2012/1/8

Moving an object to another object

1
2
Duta Duta

2012/1/9

#
Oneshot wrote...
Hey, now i found the method.
public void pointAtObject(Player c) { setRotation((int)(180*Math.atan2(c.getY()-getY(),c.getX()-getX())/Math.PI)); }
It works, but only, if the Player is over the Zombie. I think, there is a range limit. Can i change it to "no range"? Best regards
Didn't notice that post
Oneshot Oneshot

2012/1/10

#
Thanks to all, now it works fine ... and i understand it :D
You need to login to post a reply.
1
2