Quantcast
Channel: Questions in topic: "follow"
Browsing all 536 articles
Browse latest View live
↧

Navmesh follow and stop at a distance

Hi so what im trying to create is. the play can right click on an enemy and he will follow at a certain distance. which is working fine. but what i want it to also do is stop at that distance too....

View Article


Player follows mouse, but I need only Y

Hi everyone! as you can read in the title I have this script that follows the mouse in X and Y axis, but I only want it to move in Y axis. I'm a total noob so I have no idea how to do it, here's my...

View Article


Unsmooth vehicle-following camera

Hello, I have written a smooth vehicle-following camera, but for some reason, it is shaky, like it was not updated often enough. I've read several questions about this. Some people suggest to use...

View Article

Finding name of gameobject that entered a trigger

I'm trying to create a script that has a game object follow another game object that enters the collider. In order to do so, I've tried referring to the object that entered the trigger as...

View Article

how to make the camera follow the player only in one axis (the z axis)

im making an endless runner game and i want that the camera follow the player only in z axis im using the simple "roll a ball" unity tutorial camera script using System.Collections; using...

View Article


(C#) Follow target (script) transform target PREFAB

![alt text][1] ![alt text][2] [1]: /storage/temp/96204-follow-target.png [2]: /storage/temp/96205-prefab.png Hi everyone! I want to use the script "follow target" with a prefab but I don't arrive to...

View Article

Having Trouble animating camera at start of game

I am trying to have it so that when the game starts my camera starts facing the player character then animates to the top down perspective. This is a top down endless runner type game. At the start the...

View Article

Arrow follows nearest target please help

Hi, How to make the arrow follow object with "Enemy" tag Here is the script : #pragma strict var Speed : float = 20; var relativeDirection = Vector3.forward; var duration : float = 1.0; var shooterTag...

View Article


Same script execution order issue

Basically I want to know about script execution logic. At present same script added into 5 different game object but script is not executing in sequence though object exist in game in sequential order....

View Article


how i can make player 2 go to follow my player again

i have a game that i want player 2 follow player1 and shoot to our same enemy and it works but after the enemy has died it doesnot follow player again it state is follow player and it go to the follow...

View Article

Mouse follow help

I have a 2D object with the camera following from above, my issue is I want the object's (a spaceship) nose to follow the position of the mouse while the right mouse button is held down. I cannot for...

View Article

Homing projectile

alright so new to programming sure its something simple so I have my enemy like character looking at the player and shooting but I want to bullet to homing onto player also so trying to use the method...

View Article

2D Object following the cursor without glitchyness at the center

I lack the technical know-how to ask this question in the title... I have a 2D square that follows the mouse cursor. The red line connects the player and the mouse. I then extend this line for...

View Article


I can't get a "victim" (can be seen as enemy) to follow the player within a...

I recently started working for an IT company and I need to develop a 2D game that allows people to practice what to do in case of a fire. Now one of the things is the player having to get a victim...

View Article

Homing Missiles that target where you were

I have a code that is on a prefab of a missile that is created by a separate object. Its position is then controlled by this code. I'd like the missile to lock onto the player's position when the...

View Article


2.5D Camera follow script

Hello guys, I've been making 2.5D game and I tried to create smooth camera follow script. I want camera to in front of the player, so he can see where he's going. I tried to add Vector 3 movedOffest as...

View Article

Getting the camera to scroll when the player hits the edge of the screen?

Hi, Im fairly new to Unity and Im just trying out a few camera set-ups for a 3d side scrolling type game. What I would like to do with the camera is have it scroll ahead a set amount when the player...

View Article


camera not working after scripting player state

i got tuorial on youtube channel stevie rof https://www.youtube.com/watch?v=DmkR9wADjS4&lc=z22bsldjvpasd5sv1acdp434datu4ihl5bnuh0222q5w03c010c.1515246400697574 in this episode make me struggle...

View Article

Keeping camera stay put in the y position

Hello! I have an endless runner where I have a simple script to follow the player: using System.Collections; using System.Collections.Generic; using UnityEngine; public class Cam : MonoBehaviour {...

View Article

Object moving forward before it starts functioning

Hello, I wanted to make an enemy come out of doors and then start following the player. The enemy already follows the player, but when I put it behind doors it just starts moving towards the player and...

View Article
Browsing all 536 articles
Browse latest View live


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