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

How can I Make 2D enemies follow a player until the player is on a different platform.

$
0
0
Sorry Im new to unity in advance. Im going for a single 2D platform that when I jump on it enemies will stop following the player and the enemies will move towards a game object(such as a jumpad) and then continue to follow after they collide with the game object. So far I have enemies moving towards the Player void Update() { transform.position = Vector2.MoveTowards(transform.position, Player.position, speed * Time.deltaTime);

Viewing all articles
Browse latest Browse all 1488

Trending Articles



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