Parent Script accessing Child components
Hello, I'm working on a game which uses guided missiles to destroy planes, to do this each plane's parent has a small box collider and a child which has a large sphere collider when the missile enters...
View ArticleHow do you spawn multiple prefabs within a certain distance from each other...
Say I have four spawn points, and I want each spawn point to instantiate a random amount of rigidbody prefabs within a certain range of each other. I can currently instantiate one prefab per spawn...
View ArticleAddingForceAtPoint not doing anything
Im using Rigidbody2D for some game objects. It seems that when i AddForce or AddForceAtPoint i the game objects that i use it are mostly affected on the Y axis and hardly at all on the x axis. I dont...
View ArticleHow to make a reload animation?(with hand+gun)
i apologize if this question was asked before, if it had an appropriate answer then please give the link here i will happily delete this question. in my search i haven't fount a satisfying answer. now...
View ArticleFacebook integration in javascript possible?
Is it possible to integrate Facebook API using javascript or is it available in CS only?
View ArticleFinding size of texture GUI
Hey guys and gals! heres my issue, I'm making a game for android and was trying to get it so it scales according to the screen size. i figured that bad boy out but now when i launch the game. my GUI's...
View ArticleHow would you set up a Lobby Scene?
I'm having trouble setting up a lobby scene, I've tried a few ways but there are always issues. my last try was a lobby Manager script that managed player joining and displayed the GUI apart from a...
View ArticleObect not rotating with other other object correctly (foot and pedal in bike...
Hi, Building a bike game, I use JavaScript to move the human figure's feet/shoes/legs with the pedals to be able to follow the bike pedals as they move around.. The Human model has a skeleton/mechanim...
View ArticleHelp with a simple following AI
So I have been working on a basic javascript code that makes an object, in my case a zombie, look at and follow another object, the Player. For some reason this code is pulling the error: "'transform'...
View ArticleTrying to access a variable in a different script on a different game object.
I'm using JavaScript. I have a public variable called "playerLife" which is a float. It's in a script called "Battle" and placed on an object named "Cube". The error I'm getting is "An instance of type...
View ArticleWhy does my 2d player stick to the floor when he lands?
Hey guys, I am running into a bug in my 2d platformer. Whenever my player lands from a jump, he pauses for a moment before he continues to move. The only time it doesn't happen is when I set the...
View ArticleUnity And MongoDB (SaaS)
Hi, Has anyone has any success in implementing MongoDB (say from mongohq.com) with unity? I've scratched my head and still cannot figure out why and is hoping someone could possible ran across this and...
View ArticleMake 3D models using a 2D grid in RealTime.
**From this** ![alt text][1] [1]: http://puu.sh/6nmBJ.jpg ---------- ---------- **To this** ![alt text][2] [2]: http://puu.sh/6nmDR.jpg in real time, the idea is the player can draw the shape and see...
View ArticleMake 3D models using a 2D Grid.
The idea is make in a grid lines to create a ***2D draw***, and the result was a ***3D shape***. How i can generate 3d models usin 2d shapes in a graphical gui for the player. ? **The Grid:** ![The...
View ArticleHow to create seemingly random arrangement of tiles in a grid?
I am making a game with a huge environment where terrain tiles appear as the player gets close enough to them. It can be thought of as a grid of tiles with coordinates starting at (0, 0), and extending...
View ArticleRoll/Dodge/Evade System
I am trying to make my character be able to evade attacks. My movement script is quite long but this is the portion of code I am using. if(evading) { moveDirection = playerRotation.transform.forward /...
View ArticleCamera zoom on bounds with dynamic size.
In our game, we have a cube that the scaling will change and a camera using the perspective projection mode. We need the camera to zoom the cube so that we always see it as much as possible in the...
View ArticleScore Tally (kick my arse...)
sigh. Getting the scores to tally up is really kick my ass, guys.. I have it working throughout the game, but at the end of the game, when I want things to tally up, things don't work. Here is the part...
View ArticleBlender Issue
Hi all! I made a model in Blender and it comes up with this error when I drag it into Unity: Blender could not be found. Make sure that Blender is installed and the .blend file has Blender as its 'Open...
View Articlemecanim dynamic animation choice
So I'm trying to use mecanim for my current project but I'm having trouble with something. I want to have different animations for every type of weapon. In the old system I would have just put them all...
View Article