Can't add a sub-emitter to a Shuriken particle system component
Is there a reason why I can't add a sub-emitter to a particle system that is a component of a GameObject? Clicking the '+' adds a 'standalone' sub-emitter to the hierarchy, which is not what I want (I...
View ArticleOnCollisionEnter multiple objects
Hi, first post here. I'm having a problem getting OnCollisionEnter to work with another object. Basically in my game I have coins that fall down from the sky. The player is supposed to collide with the...
View ArticleHighscore script not working from another scene
I was searching the internet and came along a pretty efficient script to record high scores, when i copied and pasted all seemed find and was working, however i essentially needed for the scores to be...
View Articlehow can i change this script into fully automatic firing.
hi my current raycast shoot script only shoots one bullet one click at a time. does anyone know how i can adapt this to fully automatic firing. many thanks and heres my script: #pragma strict var Range...
View ArticleHow can I define where the camera in a 2D game hits a "wall" and stops?
You know how at the beginning of a level in an old school platformer, the camera stays still if you move to the left and only follows you if you move to the right? How do you guys recommend I do this...
View Articlehelp with character respawn after death (javascript)
Hi all, I am using this script (under this text) for a 2D platform game (my knowledge of programming is very limited). What I am trying to do is make the player respawn after death. **character...
View ArticleWhen does transform.postion = somePosition take place
Hi All, I have trigger box and when my character exit the trigger box the code in OnTriggerExit relocate the charater and set some boolean to true : void OnTriggerExit(Collider other) { //say re locate...
View ArticleConsole error after selecting Android SDK location
Error building Player: Exception: android (invokation failed) ERROR: unknown error cmd:android list target -c stdout; stderr: Exception in thread "main" java.lang.NullPointerException at...
View ArticleCan't build to iOS, but web and OS X builds fine
I'm having an issue building to iOS and Android. I can build to web, Chrome native, and OS X native just fine. Anytime I try to switch platform to iOS or Android, I am immediately welcomed by the bug...
View ArticleWorkaround for Quaternion.eulerAngles 360 Degree Limit?
Hi guys, I have a camera follow script that uses swipes to rotate the camera when the player is stationary, and to turn the character when the player is in motion (similar to the control scheme in...
View ArticleCamera View Problems
For some reason whenever I start a new scene or go into any scene at all the camera viewpoint is gray and I cant see anything I spawn except for a light source. Anyone had this problem before?
View ArticleDisabling child camera over network
I have a script which network instantiates two first person controllers. I've disabled the controls with `networkView.IsMine`, but when I play the game, the camera is not disabled and you control the...
View ArticleHow do I make multiple meshes in the same script?
Hi, I am trying to generate a series of planes between markers that the player can place in the game world, I've got code to generate the meshes but the last mesh is the only one that ever shows up,...
View ArticleProblem with static function
I have an issue with my code. I am trying to access some static functions but some things are not working properly in the compiler. static function OnTriggerEnter (other : Collider) { if...
View ArticleTrouble timing an emission (false/true bool) with variables
I'm having a little trouble making this work. No emission appears. I have tried using different functions for particle systems. And for some reason I cannot use particle emitter. Here is my code,...
View ArticleHELP! Building Player: Exception Android (invokation failed) Error Unkown Error
I have no idea what to do about this. Everytime I build it asks for the location of my android sdk. I point it to my C:\Program Files\Android\android-sdk folder. Then I get this error. Error building...
View ArticleDoor - Press button to open
Hi everyone. I'm trying to make a game but im stuck in the door opening. I want to like hit the button e and the door open then if i want hit e again and close it. Can someone tell me all the steps to...
View Articlehow to install unity (I need it to play a online game)?
Hi. im new here and im in hurry. how to install unity (I need it to play a online game)? please if its not a question or if its duplicated forgive me I will remove it after getting my answer. I have...
View ArticleRigidbody add force relative to any rotation
Hi, currently my main camera holds the cube in front of it, and as I look around the cube rotates as i am turning. My script now only will shoot the rigidbody straight on the right mouse click if the...
View ArticleCan unity understand animated edges?
I have a small model with a simple skeleton. I animated the bones and baked the simulation. Also animated a couple of edges. When I imported the model into Unity only the animations attached to the...
View Article