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

2014/5/22

Getting a turret to rotate to the players position.

craigd04 craigd04

2014/5/22

#
Hi guys, can anyone give me a hand with this? I want my player to move around the screen & dodge different obstacles. One of the obstacles is a tank. I've got two classes. The lower half of the tank and the top half which is the turret and managed to get the right size so the pivet points in the middle. It now rotates fine but my only issue now is iv no idea how to get the turret to rotate to the position the player was in and then fire a bullet.
trimil trimil

2014/5/22

#
You need to login to post a reply.