Quantcast
Channel: Answers for "Flipping a 2D sprite based on direction along the x axis (2D)?"
Browsing all 4 articles
Browse latest View live

Answer by Haxxxxx

Turns out I needed to check it against velocity, answer below: // Use this for initialization void Start () { waypoints = GameObject.Find("Waypoints").transform; someScale = transform.localScale.x; }...

View Article


Answer by Fubiou

I just found a simple way to flip the character without any problem: just try this! transform.localEulerAngles = transform.eulerAngles + Vector3(0,180,-2*transform.eulerAngles.z);

View Article


Answer by Haxxxxx

Turns out I needed to check it against velocity, answer below: // Use this for initialization void Start () { waypoints = GameObject.Find("Waypoints").transform; someScale = transform.localScale.x; }...

View Article

Answer by Fubiou

I just found a simple way to flip the character without any problem: just try this! transform.localEulerAngles = transform.eulerAngles + Vector3(0,180,-2*transform.eulerAngles.z);

View Article
Browsing all 4 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>