- Home /
Making a Game like 'Kitty Cannon'?
Hey Guys,
Im wanting to make a game like this Kitty Cannon But im not sure how to go about making it, Things id like to know is How to set the back ground and how to make the game stop when the object that has been shot has stopped bouncing/moving?
Thanks, Sam
Answer by Devon Hall · Aug 29, 2012 at 05:11 AM
Backgrounds are generally easy to do. You have a large variety of options to choose from:
-Planes: planes are essentially a flat cube with 1 visible side in which you apply a texture to to achieve what you are looking for.
-Skyboxes: Under: `Edit->Render Settings->Skybox(Material)` you can import the Skyboxes Asset by going to `Assets->Import Package->Skyboxes` and applying one of the Materials to the Skybox menu in the Render Settings.
Game Stopping: There are a few nifty tricks for achieving this effect as in reading how long the object is colliding with a specific tagged object or if it hit an object. Example:
function OnTriggerEnter (hit: Collider){
if(hit.tag == "tagname"){
//Do something
}
}
I doubt that without asking noone will actually write the code for you. So the Unity3D Scripting Reference is a good place to find and research specific functions/classes to use for programming to achieve what your final goal is: `http://docs.unity3d.com/Documentation/ScriptReference/index.html`
In addition, if the projectile is using a Rigidbody/Physics, you can check "Rigidbody.IsSleeping" to see if the object has come to a complete or near-complete stop.
Your answer
Follow this Question
Related Questions
Add Weapon 1 Answer
How to check my Game System Requirements? 2 Answers
How can I make a walk animation? 0 Answers
How to kill enemies by jumping on their heads? 1 Answer
How to work out system requirements 1 Answer