Quantcast
Channel: Questions in topic: "enemy"
Viewing all articles
Browse latest Browse all 1488

2D Enemy movement HELP

$
0
0
I want my enemy to move when the game starts ,and changing direction after few seconds so it wont fall.I use this code put it doesn't work ,it change direction only once: void Update() { if (Time.time % 3 == 0) { transform.localRotation = Quaternion.Euler(0, 180, 0); } }

Viewing all articles
Browse latest Browse all 1488

Trending Articles



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