How can i get a object fall and go up random?
I have a game where the enemy needs to go down and up and it needs to be generated randomly. How can i do that ?
View ArticleHow do i make a character move up and down with touch button
I am trying to make a 2d flying character where you have to press up and down button to move the character. This is for ios and android.
View ArticleLadder Problem
Hello, I created a script which checks whether you're inside the ladder collider and if you are and hold C it moves you up. The problem is that when I hold C it goes me up but then I fall down all the...
View Article"Half Slabs"
Hi! I'm working on a game that is made out of blocks and I want my players to be able to walk up automatically if they encounter something that is a bit smaller then the blocks they encounter normally....
View ArticleProblem with Unity autopressing W/Up and A/Left
When I run a scene in my project it automatically presses the unity forward and left movement buttons (W/Up Arrow and A/Left Arrow) even though I am not pressing them down. I have nothing on my PC that...
View ArticleHow to find an object directly above another w/out Raycast?
I am trying to make an object that applies a little air blast to anything that gets above it. I am a little stuck here. The air blaster (aka Jet) should be able to find out if something is directly...
View ArticleInput.GetTouch
Hi everyone, I got a simple question how can I make this touch script move in only one direction. For instance I want to move a block by touching my screen and sliding up only, once that happens the...
View Articlepublic not showing up
Anybody has an idea why my public not showing up inspector.My script: using UnityEngine; using System.Collections; using System.Collections.Generic; public class WeaponManager : MonoBehaviour { public...
View ArticleHow to apply a force in a specific direction in 2D ?
Hi ! I'm making a 2D game in which the player can jump on bumpers that will propel him along the up axis of the bumper. My bumper is a mushroom and must be rotated at -90 degrees on the Z axis, then,...
View ArticleTrying to make a bounce platform that tosses the player.
I want to make a bounce platform. I tried to figure it out myself but no luck. I got it to work somewhat, but for some reason it would only work if I entered the trigger from the left side. So after...
View Articleusing Raycast.hit function my car gets up and doesnt get down ?
hai everyone...iam new to unity...am trying to move a car in a terrain surface(mountain).using raycast.hit function i get my car up when am hitting in the mountain surface..but my car doesnt gets...
View ArticleCollision based bug 3d
Hi i have been trying to fix a bug for a while, basically i have a series of platforms being generated and when i hit the middle of two platforms i go directly up instead of continuing right.
View ArticleHow to get global up vector?
I have a character who needs to jump, but it also can change rotation a bit (lean forward/backwards) which prevents it from jumping properly. Here's my jump code: if ((isGrounded)&&...
View ArticleWhen I use rigidbody.Moveposition, the object doesn't move accurately.
I've been using rigidbody.Moveposition for one of the objects in my game. It moves up for a set number of seconds, then moves back down for the same number of seconds, at the same speed. However, the...
View ArticleWhy isn't my Gui showing up at all?
I am following a tutorial, and the guy has his GUI showing up but mine is not showing up when I start the game. public void OnGui() { if (!connected) { connectionIP = GUILayout.TextField(connectionIP);...
View ArticleDifference between Vector.up and transform.up
Basically my question title says everything related to my question. What is the difference between Vector.up and transform.up? If I have asked silly question then forgive me but at present I can't able...
View Articlec# help with rotate and rotatearound
Hello Q&A board, I have built a mini-solar system. I have some planets orbiting the sun and cameras watching it. I have hierarchies setup to accommodate child-parent relationships. When I watch the...
View ArticleHow do I tilt my Spaceship and make it go up and down?
Hello, I want my spaceship to tilt left and right whenever I 'sidestep' with it. But I'm not sure how to make that work :/ I would also like to make my spaceship go straight up and down, when pressing...
View ArticleUnity Game object with stop move up and down position in meta world Camera
I have used 3d Game Object in my Scene, and i have used third person camera,when i place my 3d game object in particular position, When i move the camera,the object position should be changed and the...
View ArticleAbout power-ups...
Okay, so... I've been trying to make a game where you are a comet. It's a platformer that doesn't use jumping. But I seem to be having trouble regarding the programing of power-ups. I need two...
View Article