- Home /
8-directional orientation, top down 2D, seperate from movement
Hi, i want to make a 2D top down RPG/dungeon crawler where look/attack direction follows the 4 axis and is separate from movement.
I get the basics:
I need to get the Quaternion.LookRotation between my player to the cursor but i can't figure out the math to divide it into 8 segments for the animator to use.
Thanks in advance
KK
Comment
Your answer
Follow this Question
Related Questions
How to have camera follow player unless it hits a boundary 1 Answer
2D TopDown RPG need help making RigidBody2D AI move at a same speed 0 Answers
Jump functionality for a 2D Top Down game? 1 Answer
Add item to GUI inventory and drop him back in the scene with keys 1 Answer
2d top-down rpg direction check 1 Answer