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

2016/11/9

turntowards but image not facing correct way

ZoeF ZoeF

2016/11/9

#
I have a turret that needs to follow a enemie on the world. is there a way to set a image in a different way than the original creation of the image (curently facing up standard but the turn towards is off by 45°). I tried a setRotation but that gets overwritten by the turn towards.
Super_Hippo Super_Hippo

2016/11/9

#
You could always turn right after the turnTowards method.
ZoeF ZoeF

2016/11/9

#
Don't get me wrong i appreciate the idee but that is just sloppy.
danpost danpost

2016/11/9

#
You could use an image editor to rotate the turret image so that it faces right to begin with.
ZoeF ZoeF

2016/11/9

#
Yep did just that. Tnx anyway.
You need to login to post a reply.