Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

Search the Community

Showing results for tags 'code'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GENERAL
    • Introduce yourself
    • Discussions
    • Showcase
    • Need help?
    • Seeking team members?
    • Offtopic
  • RESOURCES
    • Example Projects
    • Scripts
    • Shaders
    • Unity Tutorials
    • FPS Kit Tutorials
    • 3D models
    • Animated 3D Models
    • Graphic design
    • Textures
    • Sounds
    • Other
  • SELL | REQUEST
    • Sell
    • Request
  • Mars' Modular Multiplayer Photon FPS Kit's Topics
  • Mars' Modular Multiplayer Photon FPS Kit's Reviews
  • Mars' Modular Multiplayer Photon FPS Kit's Updates
  • Mars' Modular Multiplayer Photon FPS Kit's Tutorials
  • Busy People's Introductions
  • Photon's Tutorials
  • Photon's Photon General
  • Photon's Showcase

Categories

  • Free Projects
  • Free Assets
  • Game Demos
  • Photon's Files

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


YouTube URL


Facebook URL


Twitter URL


IndieGoGo URL


Kickstarter URL


IndieDB URL


GreenLight URL


Location:


Interests

Found 12 results

  1. This is for a door that i just spiffed up. Is it good? also i have a thing where it makes a scene "Dont Destory on Load" and its really screwing me in da but. anyways.. here DoorPrefab.zip
  2. Version 0.1

    27 downloads

    A text file containing a JavaScript which assigns a random colour out of six choices. Copy and pasta this into MonoDevelop or whatever. Replace R, G and B in the declarations to get your own custom colours and not errors. Example: Color(R, G, B ) into Color(0.41,0.51,1.59); a cool blue. I recommend using www.colorpicker.com for finding RGB values. Be sure to divide the RGB values by 100 and make them float. haha It's a bit of hassle, but I just wanted to share it with the community.
  3. Hi guys, How can we change the with coding animation? (In operation.. Not manually.) Example ; First Animation (Selected) : Walk Second (Change the with code.) : Run
  4. Hello, so I need some help of the good coders that we have in this community. My idea is simple, is possible to press a key by code? I mean, can I write code down a void to press a keyboard automatically? For example: void somethingHappen () press.Key (space); I have never see something like this, but I know that we need a lot of years to learn all the possible code so I'm sure this is possible, that's what Im making the question. Thanks for your time.
  5. Hey There.. Can u help me to solve this problem.? i had a script.. and i want to add this script to my object.. but the error comes up.. it says cant add this script because it doesnt exist and the file name, class name doesnt match.. but i try to fix this.. and i got the problem,. the problem is.. there is 2 instantiate at the same time.. and i want to know how to solve this problem.. i'm really appreciate your advice to solve my problem.. thx b4 and here it is the code.. using UnityEngine; using System.Collections; public class SpecialEffectsHelper : MonoBehaviour { // Use this for initialization public static SpecialEffectsHelper Instance; public ParticleSystem smokeEffect; public ParticleSystem fireEffect; void Awake() { if (Instance!=null) { Debug.LogError("Multiple instance of SpecialEffectHelper!"); } Instance = this; } public void Explosion(Vector3 position) { Instantiate(smokeEffect, position); Instantiate(fireEffect, position); } private ParticleSystem instantiate(ParticleSystem prefab, Vector3 position) { ParticleSystem newParticleSystem = Instantiate (prefab, position, Quaternion.identity) as ParticleSystem; Destroy(newParticleSystem.gameObject, newParticleSystem.startLifetime); return newParticleSystem; } }
  6. So here's the deal, basically in my game i'm having a huge open world and am having the player spawn at a random spawnPoint, in the open world. But the thing is is that i'm using GameObject.FindGameObjectsWithTag to find the spawn points (them i'm adding them in a array) I'm having my player instantiate at one of the spawn point in the array, only thing is I keep getting this message: NullReferenceException: Object reference not set to an instance of an object Spawn Manager.Spawn () (at Assets/Spawn Manager.js:16) Spawn Manager.Start () (at Assets/Spawn Manager.js:8) I checked within the code and am very confused, i'm sill learning this stuff and to the people who really know this, this question probably sounds stupid. But I still can't find the problem that Unity is talking about, I have a very short and simple script. Here it is: var spawnPoints : GameObject[]; // Array for Player's spawn var PlayerPrefab : GameObject; // Player Prefab to spawn function Start(){ spawnPoints = GameObject.FindGameObjectsWithTag("PlayerSpawn"); Spawn(); } function Spawn(){ var obj : GameObject = PlayerPrefab; var pos: GameObject = spawnPoints[Random.Range(0, spawnPoints.length)]; // Randomize Spawn Points Instantiate(obj, pos.position, pos.rotation); } See? Not much. The SpawnPoints I currently have in-game are tagged with "PlayerSpawn" but I know that's not the issue. And I'm sure i'm being just stupid with the issue here and i'm also sure that there's a easy way around this but that's why i'm asking for help, (So I can learn this stuff and get better) If anyone can help me figure this out much would be appreciated. Thanks!
  7. I was recently tasked with creating Preloaders for a friends unity game. I began to think, and play around with the idea for a while, and wanted to incorporate mechanim into it as to make for easy animation editing and expanding. So here's what was asked of me... C# - Check (although not much code is even needed, and can easily be converted to js). Mechanim - Check (with mechanim these animations for the preloaders can be added to nearly anything for custom preloader designs). 2D/3D - Check (the animations can be applied to 3d objects with very small changes or stick with any 2d object). Minimalistic - Check (keep your project small and organized). Time: 1 Hour Preview: Here Download: Here Say thanks if you found this in any way helpful the source code and the entire project is open and free to do whatever you want with! The code is nicely commented for further explanation and includes 3 animations. Although you can expand upon it if you wish or ask and I will help anyway I can. Feel free to help contribute! You can use this project for learning or for whatever you want, I hope to see people contribute to this project and make it even more awesome! ALL UPDATES WILL BE ADDED TO BOTH THE PREVIEW AND DOWNLOAD AUTOMATICALLY
  8. So I wrote this script and i was just wondering if anyone knew how to make the script so it will load a level specified in the inspector instead of in the code (so i don't have to make a new script for every time the player beats a level). Thanks Here is my script... // Loads The level function OnTriggerEnter (other : Collider) { Application.LoadLevel ("level 1"); }
  9. aradox

    lessons

    Hi there, it has been a while since i coded, and i forgot, i need some lessons but i don't understand anything form those online resources. so can somboidy please give me some lessons through skype. thanks Tim S. aka aradox
  10. Hi guys i was just wondering if anyone knew how to make a menu that pops up when the player dies. With buttons (and text) for restart and quit to menu (load a level) . Thanks
  11. Hello, My name is Michael La Manna and I'm one of the co-founders of Floppy Entertainment, LLC. We offer cost-effective outsourcing solutions for game developers. Our talented and experienced team provides a variety of services including game design, programming, concept art, 3D assets, audio design and music. If you have any clients that require outsourcing soloutions please feel free to contact me. Thank you, Michael La Manna Michael@floppyent.com www.floppyent.com
  12. Call To Arms: Sadly The Game Has Been Cancled
×
×
  • Create New...