ritobanrc / roguelike-game

My second try at creating a rougelike. This time, I'm working with a friend! (yes, even programmers have friends.) Hopefully, this will end up better.
Apache License 2.0
0 stars 0 forks source link

Why is the Main Camera parented to the Player???? #2

Open ritobanrc opened 7 years ago

ritobanrc commented 7 years ago

There are much better ways to achieve a Camera follow that don't involve awkward screw-ups with Unity Physics or rotation and stuff. What if we use root motion for animations? Or any type of non-sprite based animation? That would cause problems with just childing the camera to the player.

ritobanrc commented 7 years ago

Unparented the camera, but still haven't completed a full camera follow setup. "Partially Closed"

ritobanrc commented 7 years ago

Check out the one used in the Survival Shooter or Tanks tutorial (more complicated for 2 players). It's almost the same for 2D, but you want to use XY instead of XZ