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.

ogike

Newbie
  • Content Count

    14
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ogike

  • Rank
    Newbie

Profile Information

  • Gender
    Male
  • Location:
    Hungary
  1. So I'm making a 2D game, and I want to impement co-op. So far I understand networking, but while searching for a problem, I found this post: "You mention "Network.Istantiate". Don't use it, it's just a demo function for "hello world" projects. (It's a bit like "Invoke" which is good for beginners but normally you just use coroutines.)" (link : http://answers.unity3d.com/questions/326626/games-with-multiple-maps.html ) I tried to google this, and why I shouldn't use it, but only found posts about this from the same guy on unity answers, "Fattie". So my question is, should I use Network.Instantiate, and if not, why not? (Note: I know how to handle networkplayers from this : http://docs.unity3d.com/ScriptReference/Network.AllocateViewID.html , but Network.Instantiate would be faster to write)
  2. ogike

    Multiplayer Help

    How I did it : When I spawned the player, wich had a First person part(by default it wasn't active) and the Third Person part(by default it was active), and on the spawned players PC I set the SetActive of the Third Person false, and true for the First Person.
  3. I think it's for GameObject.
  4. ogike

    Gun and camera set up

    You have to do this via script: Gun.transform.position = Camera.transform.position; Gun.transform.rotation= Camera.transform.rotation;
  5. I think it's that you have 2 OnMouseOver functions?
  6. The others work. Nevermind.
  7. But after it? It bringes me to this link : https://disk.yandex.ru/copy/?path=/narod/28288719001.234478d10b2a9604618a14de19d8dcaf&name=cityDamage.unitypackage Do I have to register? Or is it a map I can't download?
  8. How can I download them? I don't know that language.
  9. ogike

    Collisions

    And how can I get the Collision for the wall jumping (so I can get the angles)? Is it the same with OnCollisionStay?
  10. ogike

    Collisions

    No, I'm making an FPS game, so it wouldn't work. Anyways, thanks for your help.
  11. ogike

    Collisions

    Ok, got the grounded and the crouching part, but if I want to detect collison's from the sides, do I have to make more objects?
  12. ogike

    Collisions

    Hi! I want to detect if the player is grounded, there's something above his head and if it's colliding with walls from sides in one script. I have a basic movement script, what detects if the player is standing, but I want it to detect if there's something above his head, so when im crouching, i won't get into objects. How can I get the two collison info seperated? Here's the code that I'm using: function OnCollisionStay (collision : Collision) { for (var contact : ContactPoint in collision.contacts) { if (Vector3.Angle(contact.normal, Vector3.up) < maxSlope) grounded = true; } } function OnCollisionExit () { grounded = false; } Also how can I simply describe the two sides in one for wall-jumping (so (Vector3.Angle((contact.normal,/ Vector3.left AND right/)? Any help would be appreciated.)
×
×
  • Create New...