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

I can get a sprite to look at my mouse but not another Vector3, im not doing...

I want a sprite to follow my player and i found some code to follow my mouse and the sprite looked at it wherever he was, however, when i changed out the variable for the mouse position to t, he...

View Article


How do I make my Instantiated prefab go where my game object moves ?

So basically, wherever my character moves, the prefab inherits the movement from it and is pretty much on top of it throughout.

View Article


My AI code is only making a sprite look Left or Right? Help please.

Basically in my update function for my hero i have an update which is calling this method on an enemy. However the enemy only ever looks left, or right. Can anyone help with this? function...

View Article

problem with ai

hi i am making a game and i am using this code to enemy follow player transform.Translate(Vector3.forward * moveSpeed * Time.deltaTime); the problem is my game is on a terrain and has some Heightes now...

View Article

Make game object face player and at the same time follow mouse position

Hi! I'm making this 2d platform game. The player is playing the game with help by rigidbody2d. There is no actual control over the player character. He is moving down the levels with help of colliders...

View Article


I want to draw a line(curved) as finger moves on screen after that move a...

My game is in 2D. Line can be any random line or curve. (have a start and end point) I read that touch need to be converted from 2D screen to 3D world point using the function ScreentoWorldPoint...

View Article

rotate gameobject

i have 2 gameobject "TanHead" and plane(with position increment in x ) ,what i want is my TanHead to follow plane with only rotation ,position of Tank is fixed .so when my gameobject (plane) is above...

View Article

Make navmesh agent follow terrain

Hi! I have large terrain mesh, and I want navmesh agent to follow it properly. No matter what setting I choice for navmesh generation, it is not covering the whole terrain surface properly. I.e. there...

View Article


Camera Follow sphere with ridgidbody?

Trying to make a script that will make the main camera folow the sphere ingame. I can get it to follow just fine, but when it comes to dramatically rolling with the sphere, its not a pretty sight. How...

View Article


How to make a camera follow a sphere without rotating with it.

Trying to make a camera follow a ball that has a rigidbody. But I can't get it to follow with out rotating with it. And I want to be able to rotate the camera around the ball (Within Limits) How can I...

View Article

Want to make a following enemy freeze when visible by main camera

Hi, I'm creating a game, and I have an enemy that at the moment follows my character (main camera) but I want it to stop moving (freeze) when it is visible by the main camera, I also want it to start...

View Article

Move around bends in racing game.

Hi, I have had a bit of trouble lately trying to get my player to automatically follow bends/turns in a tunnel track. Here's my setup: ![alt text][1] So how can I make my center rotation gameobject...

View Article

NavMesh AI: follow only if seen

Hello everyone, As the title says, I want to know how can an enemy with NavMesh AI follow ONLY if it sees the player? Here is the script for the AI: var speed : float = 10.0; var player : Transform;...

View Article


AI Enemy Follow de player with wayPoints

Hello everyone, I'm making a game like PAC MAN. I already have a script that will be the basis of Intelligence of my enemies. The script below is the player with some bugs, my enemy does not follow the...

View Article

Sync Camera and Object

Right now I have a camera following a cube. I want to syncronize the camera and the cube, but I can't use child. The cube is on the floor, and the camera is in the sky so rigidbody.addforce is unequal...

View Article


Spline controller problems?

I just recently downloaded the spline controller scripts from the wiki and I came across a problem. The spline controller moves an object perfectly but this is not what I was looking for. I need the...

View Article

Follow camera: Player jumps on move

I am trying to create a follow camera. I have isolated the problem to the following simple setup: 1) Player object with rigidbody, no gravity, drag 4 and the following simple script public class...

View Article


Smooth Follow 2D simple tweak

I've applied this standard assets script to my camera and it's actually doing a good job but since my background texture is placed inside a quad that "follows" the player and not the camera at higher...

View Article

How do I make basic follow ai stay

**How do I make it so the objects stay in 2d and not rotate to look at the player?** var target : Transform; //the enemy's target var moveSpeed = 3; //move speed var rotationSpeed = 3; //speed of...

View Article

How to make a cylinder follow two sphere

Hi, i'm new and i'm trying to make a simple project in unity. I have 3 object : a cylinder, and two spheres. I'd like to make the cylinder follow the two sphere like a sort of line through two point....

View Article
Browsing all 536 articles
Browse latest View live


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