Having a friendly character follow player
Hello! I'm trying to get an array of characters to follow the Player's exact path. The code I have works but the characters catch up if the player collides with something (I believe the storedPositions...
View ArticleHow to make characters follow player like Earthbound?
Hello! I've been trying to get characters to follow my player's exact path but can't find a perfect solution anywhere. I tried using Lists to record my players path and have the character(s) follow...
View ArticleProblems with camera
My problem is that I place my camera into the object of in this case a moving vehicle so it will follow at a certain angle and position that I want but it does not follow the object it just sits there....
View Articlehow to have a sprite follow the spot of my mouse cursor.
I'm trying to make my mouse move a sprite around. All I have so far is: void Update() { float mousePosition = ???? Vector 2 spritePos = new Vector2(transform.position.x, transform.position.y);...
View ArticleHow can I make the enemy move towards the LAST position of the player until...
Hello! I'm a newbie here. And I'm practicing by creating my own single screen game. It's a game where the cursor is being chased down by an enemy. I want my enemy to not just follow the cursor but move...
View ArticleWant to make GameObject follow another GameObject's path Unity3D
Hello, I am trying to make a GameObject follow the path exactly to a player GameObject with a delay. I have looked everywhere and most scripts make the follower Lerp to the current position of the...
View ArticleCamera not following Player in VR mode on Android
I was trying to develop a VR application and in the Game Mode on Unity, the camera follows the Player. But when I build and deploy the app on an Andoird phone, the camera just stayed static while the...
View ArticleHow Do I Make Camera Follow Sprite 2.5D
But how do you make it please help. ![alt text][1] ![alt text][2] [1]: /storage/temp/134767-screenshot-35.png [2]: /storage/temp/134769-screenshot-36.png
View ArticleHow can i get my enemy spawner follow the player?
I'm trying to make my enemy spawner follow the player. At the moment its set to 40 on z but when the player moves past that they keep spawning in that 1 place. here is the code so far: public class...
View ArticleMove camera at certain speed to the right but follow player in Y ?
The player is only moving to the right as well and the speed of the camera varies depending on the player actions. Ex: public float CameraScrollSpeed() { float speed = 9.4f;//default speed if...
View Article(Camera follow cursor) Camera moves differently depending on my cursor's...
Hello everyone, I've making a 2D-scene where I've written a scriptthat makes the Camera follow the cursor (with boundaries). I have a problem however, the camera moves differently depending on where I...
View ArticleUI image to follow an instantiated prefab?
Hey, I'm making a Bullet hell style game (Touhou Fan-game actually but it's not the point), and I'm making my first Midboss who's a prefab instantiated after some time. I have to make a circle health...
View Articlemake a gameobject follow an array of targets
>I wish to make a specific game object attack a specific target, and after that target is gone (Destroyed), go to the next closest target. As long as all the targets exists, my script works well...
View ArticleHow do I make the camera follow a vector3? 3D
my player makes a raycast from the camera to the position of the mouse (the player looks at that hit) my intention is to calculate the midpoint between that hit and the player, and that the camera...
View ArticleHow to make a follow AI
I know there are a lot of questions about this but all of them are outdated or don't work. So I want a basic ragdoll AI that follows the Player until it touches the player. But none of the code works...
View ArticleHow to make a child game object move based on the parent position ?
So i want to make the turret of a tank and a CHILD of it, go back and forth when shooting, so this is what i've done : IEnumerator Gun1BackandForth() { // when i shoot i call this Coroutine to move the...
View ArticleUnity 2D - Bullets don't follow mouse
I'm trying to follow this video to make a 2d ranged combat system: https://www.youtube.com/watch?reload=9&v=bY4Hr2x05p8 I followed the video and compared my scripts to the project files from the...
View ArticleRigidbody jittering with camera follow
Hi I have a rigidbody player that is being moved by setting the velocity and rigidbody.MoveRotation. (Example code below) void FixedUpdate(){ r.MoveRotation(r.rotation * newRot); r.velocity =...
View ArticleParticle Emitter follow certain part of Prefab,Particle Emitter Follow...
Let say i have Humanoid Prefab it has hands and foots, this prefab is animated through Animation Control, I want a particle emitter to follow where ever it's hand goes , only follow hand not entire...
View ArticleHow to run 1 animation, then other
hi! Im trying to make a toggable sprite mask, that, when triggered, plays an animation of opening the mask, and then triggered again, closes. I already have 2 animations, I just don't know how to...
View Article