Here I encountered the most interesting and most frustating part of my game build. I had done some reacher into the idea of having a 360 rotation of a object in relation to the x and y cornates of the mouse ( a 2d mouse rotation) and to apply it to my tank. I have had experience with the 2d app developer flash so I knew the basic of lining a rotation with the mouse. I threw together this script to have the tanks's gun (a child of the tank) rotate with the mouse to get me in the direction of being ably to fire in a 360 on the y rotation
the problem was that unity is still functioning on a x,y, z axis so it snaps in the wrong direction
other then that I finished my non enemy Npc sprit




No comments:
Post a Comment