Quantcast
Channel: Latest Questions by brandonhotdo
Browsing latest articles
Browse All 108 View Live

If statement not working!?

Heres my code i made sure that SpaceCoreInArea is 1 and yet it does not say "work" when i jump! #pragma strict function Start () { } function Update () { if(PlayerInArea.SpaceCoreInArea == 1 &&...

View Article



visable object no matter how far a way

Is there a way i can have an object visable no matter how far away? Becuase I was making a space game where u can go to the moon but during night on earth u would be able to see to moon (which is...

View Article

Scene object to prefab

I have looked everywhere for ways to assign scene objects to a prefab but none is the way I wanted it. I need to be able to have an object in a scene, lets say a cube. I then stretch the cubes edges...

View Article

JS to C# not workin

i have a c# void that i want called from js but is say it cant find it. . . js 'server_menu' GUI.Button(Rect(xb,yb,xbs,ybs),"Make World");{ CreatePlanet.Create_Planet(); } c# 'CreatePlanet' using...

View Article

JS to C# not workin

i have a javascrip file where it calls a c# viod js 'Server_Menu' function OnGUI(){ GUI.Box(Rect(x,y,xs,ys),"","button"); GUI.Button(Rect(xb,yb,xbs,ybs),"Make World");{ CreatePlanet.Create_Planet(); }...

View Article


No Parent?

I have a Object called "Planet(clone)" (clone because its get instantiated) and it has a child called GravRad! var lol; function OnTriggerEnter(gr : Collider){ if(gr.transform.gameObject.name ==...

View Article

Mesh colloid er not working?

I have a mesh collider of a sphere hexahedron and yet it does not collide with my capsule collider. Its some times collides correctly and sometimes not. However I have code so that the mesh gets...

View Article

Anything Maxim?

So I have been using unity for a long time now (2 years) and I was wondering is there any limits to how big an object is or how far it is? I have realised that you can not zoom out any further when...

View Article


Photon scene objects not players!

I am using Photon View to make my game multiplayer but when ever an object gets instantiated trough photon view it thinks that the object is a new player, so that I can only instantiate 1000 objects in...

View Article


RPC with Random Numbers!

Here is my code using UnityEngine; using System.Collections; public class StarCreate : Photon.MonoBehaviour { public GameObject prefab; public int StarCount; // Use this for initialization void Start...

View Article

Accessing Variable From Other Gameobject

Ok so I was hoping that when these to objects go collide or in my case enter trigger that they roll a dice and which ever is lower it gets deleted! Here my code. #pragma strict var Dice = 0; Dice =...

View Article

NullReference

Here is my code using UnityEngine; using System.Collections; public class SolarSystemCreate : Photon.MonoBehaviour { public GameObject GasGiants; public GameObject Planets; float PlanetX; float...

View Article

NullReference

I have gotten a null reference exception on line 10 using UnityEngine; using System.Collections; public class MainMenu : MonoBehaviour { public int ServerPort = 25565; public int MaxiPlayers = 27; void...

View Article


Servers and ip address

So here is my code using UnityEngine; using System.Collections; public class NetworkManager2 : MonoBehaviour { public static NetworkManager2 Instance; // Use this for initialization void Start () {...

View Article

Port forwarding

So I have been looking around the internet on multiplayer for unity but every thing I watch/read makes me even more confused on how it works! Most games you just port forward a port (usually the game...

View Article


Networking Error!

So this is the error! View ID AllocatedID: X not found during lookup. Strange behaviour may occur. (A second error that always come's after the first one) Received state update for view id'...

View Article

Deleting RPC objects

Hi. I've been faced with a bug that stops me from coding and that's how when I instanite an object through rpc's to all (on server mode) I get a lot of errors when deleting it! So could I do an rpc...

View Article


Unity pauses when tabbing out!

It seems that when I tab out of unity is pauses. So if i had unity to one side of my screen and something else on the other unity would be frozen until I click on it! Now I thought this would not be a...

View Article

Multiplayer Gun Script

So here is the script for the gun using UnityEngine; using System.Collections; public class GunScript : MonoBehaviour { private GameObject FirePort; public Rigidbody BulletType; public int BulletSpeed;...

View Article

Terrain trees

Now what I want is simple. I have looked over the internet on how to interact with terrain trees and all of the scripts are very complicated. I just want a script that when I click on a certain terrain...

View Article

Syncing times

So I have a day/night cycle but the problem is when you make the server it starts of day by default and lets say you waited to the afternoon, then when a new player joins for him it's the morning and...

View Article


Multiplayer un-synced

So what I have been trying to achieve is to call an rpc and have it create 100 trees across the map and I have achieved that but for every player the trees are in different places. . . so here's the...

View Article


Mecanim delay

I have a trigger (called punch) in mecanim so that when the player clicks it is activated. I have a default animation which is just an empty state and when punch is activated it transitions to a...

View Article

Odd Point Light Shadows

So I have a scene made up of multiple blocks. Every 4 meters is a new block/wall however due to there being no space between the blocks makes the scene look like that it's made up of large blocks....

View Article

How to make a dedicated server

So I've been making a game in unity that has multiplayer. The issue is that the host would have a lot of lag as it has to load a lot. As well has he has to stay afk on the server to keep it online. So...

View Article


Canvas Scalar Scale with Screen Size Bug

I have a UI image that takes the top 20% of the screen. I've set the Canvas Scaler to scale with screen size and set reference resolution to 1920x1080. The screen match mode is shrink and reference...

View Article

[Closed, I guess] Imported font appears very messy on UI Text

I've imported a custom font and placed it on a UI Text. I've noticed that there are multiple lines around the characters on the text. As the text is scaled down more random lines appear and as it's...

View Article

Network Discovery is not working over multiple devices.

Okay so I have spent the past 48 hours trying to figure this out but I can't. I'm trying to use the Unity Network Discovery component to have the clients find any local servers. All I want is for a...

View Article

Get imported model to look nice

Now I know this is very vague but I've never really looked at the graphics part of unity, I've always just really coded stuff and left all imported models as they are but I would really like to know...

View Article



Clash of Clans clan system

I would like to know how the clan system works on Clash of Clans as I would like to have a similar system in my own game. I've tried looking this up on the internet but it just comes up with how to...

View Article
Browsing latest articles
Browse All 108 View Live




Latest Images