rotating hand problem

Updated on July 10, 2018 in [A] Brackeys Courses
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
0 on July 10, 2018

I am making a 2D platformer game and I have been following multiple tutorials and then i found brackeys 2D platformer tutorial and i skipped past some of it since I have already done most of it and I have just finished making the players hand rotate but when the player moves to the right the sprite gets flipped which moves the hand to the other side of the player which causes the hand (and gun) to not follow the cursor correctly, The only fix I have found was to change the rotation offset to 0 but i have to do that in the inspector so all i need to fix it is a script the changes the players rotation offset to 0 when the sprite gets flipped.

 

video of the problem: https://www.youtube.com/watch?v=T6Kym0ULTcM&feature=youtu.be

if you need the hand code from the game just ask

  • Liked by
Reply