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

Move the enemy object opposite to player and keep its distance relative to the player?

$
0
0
Hi, I'm new to unity 3d.This is my first sample 3d game. I'm trying to create a script that dog will runs after the sheep, where sheep runs away from the dog to the opposite direction of dog ,when dog comes nearer .(for example dog comes left side of the sheep,it will go to right side, if dog comes right side it wants to move left) . Finally dog wants to move the sheep into the house. After moving the sheep into house the game, stop the sheep's movement. I'm still learning scripting though!

Viewing all articles
Browse latest Browse all 1488

Trending Articles



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