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

Make instantiated object follow player or another object

I'm trying to make an instantiated object to follow my itemSpawn object. But when i click in an area the object gets instantiated but i doesn't follow my itemSpawn. Main code thing: using UnityEngine;...

View Article


Having a 3D text appear in the middle of the screen without using GUI (C#)

Hi all, For my game, I want to provide some text blocks with information. Because I'm going to use it with the Oculus Rift, I can't use GUI, so instead of using Canvas with Text children, I'm using 3D...

View Article


unity 2d C # script follows the enemy player.

hello. I have this script for development in 3D. the enemy follows the player, but it does not work well for a 2d game. How do you change in 2d so that the enemy follows the player, using the x-axis?...

View Article

C # script error CS1729.

Error CS1729: The type `UnityEngine.Vector2 'does not contain a constructor That takes` 1' arguments script: using UnityEngine; using System.Collections; public class EnemyInseguePlayer : MonoBehaviour...

View Article

C # script the enemy chases the player.

Hello everyone. I have this script that does not work for the enemy. When the player approaches the enemy, it is not pursued. The enemy remains still in place. What could be the problem? Script of the...

View Article


How do I make a camera follow an object without changing its rotation in C#?

So i have a project i'm working on and the ball system is similar to that of the basic tutorial game of RollABall, I need the camera to follow the ball at a height of 35 and an angle of -45º, The...

View Article

Have Arms follow camera partially

How can I get my arms to follow where my player camera looks. If I set the arms as a child it looks weird when I look up and down. How can I get it so when I look down I can see my bicep and when I...

View Article

How to make a gameObject follow another one with delay and variable speed?

Hello everyone. I want to make it so that when a gameObject ("Player") controlled by the player moves, a second one ("Secondary"), after a brief delay, starts moving from a set distance, following it,...

View Article


Help with a simple 3rd person camera?

I'm trying to get a simple 3rd person camera to work. All I want it to do for now is follow my player (a non rigidbody capsule) with the ability to rotate the camera in any direction depending on the...

View Article


2D how to make a sprite follow the mouse position #c

I've started programming with Unity not long ago and I have a noob question: The sprite should follow the mouse and should have the same position all the time. When I first try writing the code I came...

View Article

npc move when playing walk animation?

Hi i made a basic npc, she has a follow script that makes her follow you once you get close enought to her. She also has a animator that makes her play an idle animation and a run animation. The...

View Article

Gameobject follow mouse on center

**What needs to happend** The object is instantiated at the mouse position, so that the mouse is centered on the object. Then you can move the object over the terrain while snapping to the grid staying...

View Article

How to create a follow bot. Please help!

I am trying to create a follow bot type character that will follow the player when the player enters a collider. This is what I have so far... using UnityEngine; using System.Collections; public class...

View Article


How to make an object follow the rotation of another object?

**how to make an object following another object rotating around a circle?** ![alt text][1] [1]: /storage/temp/48967-vector3-follow-quaternion.png

View Article

Object lerping in same direction as camera jitters

I have an enemy the lerps around certain points while attacking, and that works all fine and dandy. But when the player's camera is moving the same direction as the enemy, and the enemy is right at the...

View Article


Why does the camera smoothly follow in one direction but not the other?

Hello! I am currently trying to write a camera script for a 2D platformer. Everything works pretty good except for one thing: the camera will track the player smoothly and lerp to the correct position...

View Article

360 Degree Snake

Hi! I'm using Unity / C# to make a variation on a 360-degree snake game, but I'm having trouble just getting the movement of the tail right (I have a similar problem as in this question:...

View Article


How to make a limited follow script?

Hi there, I'm currently trying to make a script for two characters. The characters will follow the player, but only along a certain direction and but they're limited to only follow them in a certain...

View Article

Need help with physics

Basically i want the player/rocket to follow a point on the screen where user touches. But It's based on physics. Force must be added when user touches somewhere and the rocket has to reach that point....

View Article

Camera Follow 2d multiplayer problem. Please Help.

I've spent hours looking up old posts about this with varying luck, but nothing seems to work completely. I currently have a multiplayer game which works perfect with 1 player. When a new player enters...

View Article
Browsing all 536 articles
Browse latest View live


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