Using iTween's Turret Example on 2D environment
I am trying to use iTween's Turret Example. I did everything good so far except following mouse position with rotating turret. ![alt text][1] [1]:...
View ArticleObject to follow line
Hello everyone.. i am making 2d game in that i have 5 to 6 path , which is actually line. Each line is having individual cube object which will follow line. Script to draw line is here : void Update ()...
View ArticleScreenToWorldPoint translating too far
I am using the following code to have a gameobject follow my finger: void Update(){ fingerPos = Camera.main.ScreenToWorldPoint(Input.touches[0].position); fingerWorldPos = new Vector3 (fingerPos.x,...
View ArticleEnemy not following player.
If you've seen my previous answer, this is sort of a followup on a different subject. I have a character (enemy) made in Blender and exported each individual mesh into a separate .obj file. after doing...
View ArticleIssue with enemies going towards player
![alt text][1] [1]: /storage/temp/31049-capture3.png I'm having a little issue with my enemies at the moment, I want my coloured balls to roll towards the player, but at the moment, they just seem to...
View ArticleTouch Follow 3d.
I’m struggling right now for the control of my game all I can see in the youtube and into the unity forum is touch follow of 2D. Help me I’m so depress for this control I can’t fix this. The 3d...
View ArticleHow to make a camera follow a Player, but not allow the Player to go back ?
I'm able to make the camera follow the player, as it progresses through the platformer level, but how can I stop the camera from following the player, when it is walking backwards ? So basically, once...
View ArticleRayCasting from an object and SmoothFollow
## Main problem ## I am making a space game styled like the game '**Rodina**' at the moment, and it is mainly going well; however I am changing the control system to control better using...
View ArticleSmoothFollow Unity Script improvements?
## Introduction ## It is difficult to explain this, but i'll give it a go. The **SmoothFollow** Unity script is good, but glitchy. I haven't really invested the time into proper rotations and ways of...
View ArticleNeed help/advice with 2D Camera follow script.
I want to make a script so that the camera will follow the player. I need a variable for X amount. Then, if the player is moving right, it will be -Xamount. Then if the player is moving left, it will...
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 ArticleSmooth Camera 2D Follow Player
Hi, Vector3 point = camera.WorldToViewportPoint(target.position + new Vector3(0,4,0)); Vector3 delta = target.position + new Vector3(0,4,0) - camera.ViewportToWorldPoint(new Vector3(0.5f, 0.5f,...
View ArticleMoving while facing the camera
Hello there, I'm just learning the basics and I've found myself in a hard situations that I can't get out, I was trying to make a character move to the both vertical and horizontal, but yet moving the...
View ArticleSmooth Camera 2D
Hi, I had some problem with this script. When the speed of the Player is higher than the camera's speed, then there is a bad effect. Is like the camera tremble up and down at high speed. How can i...
View ArticleColliders overlap with follow script
All of my enemies, or anything that seeks and follows something else, uses the same follow system, and so considering how they all take the same path, they occupy the same space, even though they have...
View ArticleMain Camera child under player, causes flip
I am building a 2d platformer, and I have my movement script complete; however I wanted the main camera to follow my character throughout the level, so I thought the best way to do this would be to...
View Articlehow to add a speed limit?
foreach (Touch input in Input.touches) { if (input.phase == TouchPhase.Moved) { Vector3 screenPoint = new Vector3 (Input.mousePosition.x, 65); screenPoint.z = 11; //distance of the plane from the...
View ArticleMissiles Overlap
I have two missile creators, but as they all have the same trajectory, they end up looking like one because they don't collide. i have a follow script here. I was wondering what i should do (& how)...
View ArticleCamera following/looking at aircraft
I have the following code so the camera follows the aircraft. Camera.main.transform.position = Vector3.Lerp(Camera.main.transform.position, transform.position - transform.forward * 10f + transform.up *...
View ArticleMouse Orbit script following other object
Hi, i am using Mouse Orbit script, but its rotation doesn't follow its parent rotation. I have this script attached to my camera which is child of character, but when i rotate character camera doesn't...
View Article