Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

animation wont play whilst object is following player

$
0
0
hi, first post I've made but ive been using unty for about a year now making simple games but now I have a script to make an object follow me but I have robot following me its just got its arms out in the T shape and it just follows me if I take the following off it works fine any suggestions?

my code:
Code (JavaScript):
  1. var target : Transform; //cant't be bothered to do any commments
  2. var moveSpeed = 3;
  3. var rotationSpeed = 3;
  4. var range : float=10f;
  5. var range2 : float=10f;
  6. var stop : float=0;
  7. var...
animation wont play whilst object is following player

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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