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

How do I get enemies to only chase me in certain areas

$
0
0
I'm am currently using a script that works fine at one moment and then the next moment certain enemies don't work while others do - I am confused void Update() { if(Antagonist.attackStage <= PlayerStage.playerStage) { transform.position = Vector2.MoveTowards(transform.position, target.position, speed * Time.deltaTime); animator.SetFloat("Walking", 3); } else { animator.SetFloat("Walking", 1); } }

Viewing all articles
Browse latest Browse all 1488

Latest Images

Trending Articles



Latest Images

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