Instantiate a prefab and follow player position in runtime?
Hello UnityCommunity!, It's possible to instantiate a prefab in player position and follow his movements? I'm actually instantiating a prefab in player position with transform variables but I don't...
View ArticleNPC starts shaking when switching from Follow AI to Wander AI
I'm working on a project where animals will wander randomly usually, but if they like the player enough, they will follow him when nearby. Currently, it's just a boolean I can switch in the inspector,...
View ArticleCreate two objects that rotate together when locked
I've been looking and looking trying to find this. What I want is to have two rigidbody objects so that when one is rotated, the other rotates in all 3 dimensions in the same direction - when they are...
View ArticleParticle system follows root instead of actual parent.
Hello there, I'm facing a problem and I really won't know where the issue is. I have two skinned characters, Mech3 and Mech4. They are different models but they have the same rigging structure (same...
View ArticleMake GUI follow the object
Hi! I am making some kind of colony simulator and I want when you press a human you get a info box. The info box will follow the NPC. But I can not get the box to follow it. And don't redirect me to...
View ArticleHow do you direct the camera in your game?
I am working on a game which is set like a Diablo game. I already have implemented a simple camera follow with `+offset` values for the camera and so forth. But I would like to add a hovering-effect to...
View ArticleHow can make the Durovis Dive camera follow the Character?
Hello! I recently used the Durovis Dive and the Character Controller package that came standard with Unity. i used the Durovis Dive camera and placed as a child of the FPS Controller. By enabling Axes...
View Article2D/Top Down Enemy Follow
Hi there! I am trying to make my Enemies follow the player in a simple top down 2D fighting game. At the moment, the following script seems is not working for 2D, as the enemies "Flip" to face the...
View ArticleFollow x rotation of a target object.
I need a C# script that makes a transform follow the X rotation of a target object, I am very new to Unity, sorry if this is a very nooby question! I did try to make on my own, but I am getting so much...
View ArticleCombining two camera modes
I've been experimenting with a vehicle-based game where you can drive and fire a turret. I'd like the camera to follow the vehicle while turning, but also have it orbit around the vehicle to aim the...
View ArticleSet limits for camera to other axis 2D
So right now the camera follows the 2D player as I need him to, but I can't get it to stop at other places. Right now it stops when you reach -1 on the y axis and I'd need it for both sides of the x...
View ArticleAI follows player between platforms in 2D?
Hello Unity Community! I'm trying to make an AI following my player between platforms like [this][1] By the way, I don't want anybody make the code for me. I just want somebody tell me how to do it...
View ArticleAI following my player in X coordinates
Hello Unity Community! I'm trying to make an AI following my player in X coordinates (2D game). But my code it's not working, what should I do? var player : Transform; function Start () { player =...
View ArticleCamera shake while following Player
Right now I am using this code in the Main Camera which follows the Player. using UnityEngine; using System.Collections; public class CameraShake : MonoBehaviour { public float duration = 0.5f; public...
View ArticleAdvice on implementing metroidvania camera
I'm working on putting together a simple metroidvania to try and keep my programming skills... well, not sharp, but not completely rusty. I have a pretty good camera script that centers on the player...
View ArticleMoveTowards only in X coordinates
Hello UnityCommunity! I have this code making an AI following the player in a 2D sidescroller platform, but when player jumps AI behave wrong, I tried a lot of things to fix this. function Follow () {...
View ArticleCharacter Runs Off Camera
Hello Unity3D i have a problem with my camera.The problem is my characters camera is auto targeting an enemy and whenever my character runs too far I can still see the enemy but i can't see the...
View ArticleNGUI positioning over NPC
Hi. As the question says, I'm trying to position a NGUI object over a NPC. This is the code that I'm using to do it: private GameObject CreateOrderBalloon() { GameObject balloon =...
View ArticleGetting Camera to Stop Following Player
Hi Everyone, I am trying to make my camera follow the main character until he collides with a gameObject. So far everything works as expected, the camera follows the character, and I have a boolean...
View ArticleParticles follow particle emitter
I want the particles created by my particle emitter to stay where they are created and not follow the emitter
View Article