2D Parallax platformer
Hi guys, i'm making a 2D game, a platformer. I'm using the offset thing to create a nice style when i walk. but... here comes the problem! I'm trying to figure this out by myself for a long time. When...
View ArticleGameObject, Select Parent As Object
Hello all, I am trying to create a segment of hallway that when the player passes through a plane it renders, and when the player passes through the second plane it is destroyed. I am able to use the...
View ArticleDrag objects uisng the minimap
So for a university project, I'm creating an application which allows users to place instantiate objects (furniture, etc.) and move them around a room in first person. I've included a topdown minimap...
View ArticleEnemy AI for Shooting Game
Hello everyone, I'm trying to make a third person shooter. I'm used the standard AI Third Person Controller. I have a prefab for the bullet. And I have a script for the enemy AI. The problem is it...
View ArticleCollision Problems
I am having trouble making a game object destroy itself once it has collided and input of a mouse click. The character: https://www.assetstore.unity3d.com/en/#!/content/15209 The collide:...
View ArticleNeed your IDEAS!! (Players building their own base)
**Hello!** I've had an idea for this game for the past couple of months. Basicaly, the player builds their own "base" with defenses and creatures that would try to stop intruders... However, since i'm...
View ArticlegetUnity function not returning unity object in Web Player
I am trying to call a simple C# method from the web code using SendMessage in JavaScript. No matter what I try, I cannot get it to work. I have followed this tutorial to the letter >...
View ArticleDisplay message when collide with object?
Hi there, I'm new to Unity and JavaScript, basically I want to display a GUI I have set up in the Canvas called MessageBox when I collide with this object, I have the GUI deactivated but want to...
View ArticlestartTimer working for first on screen message but not the 2nd on screen message
Hi, I am a new user of Unity and have a basic question ... I think. I have a game where you collect coins, you cannot open a door unless you have more than 10. If you do not a message pops up saying...
View ArticleHow to make OnTriggerEnter() change the speed of the Enemy Paddle of a Pong...
Hi! I have implemented the idea from [this][1] question of mine which suggested me to make the speed of the Enemy to a Random number generated every time the Ball touches the Paddle . I got it working...
View ArticleCan somebody please help me with my code - what do i need to add to make my...
So i have this code and everything is working just fine - as soon as the enemy is within a given vicinity my players camera is turned towards it. As of now the camera just "jumps" directly into the new...
View ArticleCarrying physical game objects in javascript scripting problems with Unity 5.
Currently, I'm making a small game in unityscript, and I have a character with the standard first person controller script. Problem is, when I use the following .js script, a object that is being...
View ArticleHow to Fix NullReferenceException: Object reference not set to an instance of...
Hi, I'm really new to coding in JavaScript. I am trying to make a game where you kick a tree (yeah, stupid) and whenever your leg collides with it, it scores a point. But I'm getting this error:...
View ArticleGetting data for if an object has already been collected on startup
I am attempting to create a method of saving whether a stone has or has not been collected in my scene on startup. I have done everything I know to do with playerprefs, but the playerpref is for every...
View ArticleHosting both WebPlayer and WebGL builds on the same page (Unity3d 5.3.4f1).
Hi, I'm trying to create a web page that will deliver the WebPlayer build if the browser supports it, but will switch over the the WebGL build if WebPlayer is not supported. Or, at the very least,...
View ArticleHow to change array index by clicking in java
I'm working on a script to cycle through an array of text slides. How can I use a loop to cycle through the array every time the mouse is clicked?
View ArticleUnity 5 JS, Score does not work.
I watched a tutorial on YT (From unity 4) of making a score in a simple game, i writed a short script (Like in this tutorial) = #pragma strict static var currentScore : int = 0; var offsetY : float =...
View ArticleWalking animation javascript?
I have a simple 2D game I'm creating with just the use of sprites. I have the players sprite to move with the A and D keys and is able to flip around as well. I have animations set up in the animator...
View ArticleCannot Open Javascript in MonoDevelop
Hello, I am new to Unity3D. I have this little (actually big) problem when I open a Javascript. I cannot use MonoDevelop for JS. Whenever I double click the script, an error pops up, which reads:...
View ArticleHelp in conversion of variable types c#
I need help. I converted a script: #pragma strict var smooth:int; private var targetPosition:Vector3; function Update () { if(Input.GetKeyDown(KeyCode.Mouse0)) { var playerPlane = new Plane(Vector3.up,...
View Article