I want the pitcher to throw a ball to a target a location inside a GUI panel
I am wanting the user to mouse click a location inside the GUI Panel and have the pitcher throw the ball to that location in the panel. The problem that I am having is even though I click a point in...
View ArticleHelp with Teleport Script for Puzzle Game
Hello everyone! I had a specific question about a teleport script for Unity. I have a very basic script you go through this door to get to this destination. If I wanted for example to have a teleport...
View ArticleReferenceError: Call is not defined
I get 'ReferenceError: Call is not defined' when executing the following on a WebGL build (no errors when built as a WebPlayer): string ip; Application.ExternalCall("Call", ip); In the body of the...
View ArticleReferencing instantiated player in camera's Start()
Hey guys, I'm instantiating my player in the Start() of my GameController script, and then referencing it in my Main Camera so that I can track the player's movement each frame with the camera. BUT -...
View Articlewhat is the newer version of this piece of code?
topWall.size = new Vector2 (mainCam.ScreenToWorldPoint (new Vector3 (Screen.width * 2f, 0f, 0f)).x ,if); topWall.center = new Vector2 (0f, mainCam.ScreenToWorldPoint (new Vector3 (0f, Screen.height,...
View ArticleMy healtbar is not change when i look another enemy
i have 2 enemy with health 120 and 100 healtbar GUI when the raycast is hit the collider that GUI is true, when the raycast hit enemy 120 the healtbar is 120 but when i see the enemy 100 the health bar...
View ArticleHow do you switch between cameras?
So what I've been trying to do is make it so that I'm able to switch between cameras so at a press of a button I see a different area. My problem is that I can't seem to make it so my script works. It...
View ArticleOpen a local html file in the Android's default browser
Hi everyone, I would like to open an html file that is stored locally on the device from my Unity app. The file is located in Application.persistentDataPath + "/Site/index.html" It contains html, css...
View ArticleDoor pivot using slerp issue
Hello, I have a small video of a door I'm trying to rotate based on the angle I give it. I have some doors working fine (with -90) and others that spin and act strangely like this:...
View Article(Raycasting) Changing Position
So I am currently working with an oculus rift and im trying to raycast depending on where the player is looking with the vr headset. Currently it seems like it's only raycasting directly out in one...
View ArticleWork with UI elements
Hello, I am very new in Unity. I already know javascript. I am currently developing main menu using Canvas and UI. The question is how i should work with them? 1) I need to load next scene on Start...
View ArticleDid I initiate this animation correctly (JavaScript)?
Bear with me, I'm pretty new to unity, so I'm still very much feeling my way in the dark through a lot of this. I made a simple first person game where I'm trying to make it so that when you swing a...
View ArticleAssets/script/Movement/js(25,12): BCE004: expecting ), found '{'.
I have this error message in my console and i don't know how to solve it (I'm very new to this so please help.) #pragma strict var playerAcceleration : float = 500; var cameraObject : GameObject; var...
View ArticleVisibility of objects
Hello. How to define visibility of object. For example as on a screen the cube behind a green wall has to be defined as invisible. Something such is used in the Occlusion Culling technology. ![alt...
View ArticleMetaData class can't be loaded and failed to load window layout
Hi, Got some problems with a Unity project. My friend saved the project and it works fine for him, but when I'm trying to open it i get a popup saying "Failed to load window layout". With the options...
View ArticleEnable objects to enter the trigger
Hello how are you? , the map of my game this very large with many details and this giving lag, so I tried do this script that activates objects when entering a trigger, more did not work alguem can...
View ArticleHelp with attacking, and death animation. Unity 5 javascript
Ok, I am trying to add a death animation, and an attack on hit animation; and I cannot seem to make anything work. There exist no errors, but when I click play the game goes from idle to being hit...
View ArticleJava Lists
I am making a pokemon like game where you can catch pokemon in the wild. I have everything down to where a boolean is true if I caught it. I want to then if that boolean is true to add the caught...
View ArticleComparing Time
I am creating a puzzle game with 90 levels. Each level Has a stopwatch (Below) which tracks the time. Since sec min ext are separate variables and the time is displayed in a String, I don't know how to...
View ArticleCode error Javascript GUI text
I'm trying to make a code where when you get close enough and press the E key GUI text appears and doesn't allow you to move. I got 4 errors that I can't really figure out how to fix the. The video I...
View Article