Answer by raoz
After looking at some examples, I managed to figure it out, it's only missing UV coords(I just put in default X-Z planar UV coords as a placeholder). The task seemed more intimidating than it actually...
View ArticleAnswer by raoz
If you do care about security, than this is the way to go, however, if you don't care about security, than you could have the input calculated on the client and the positions being sent back and...
View ArticleAnswer by raoz
Break up the problem into smaller problems, think about it and if you have trouble, ask a constructive, clear question here. We are not here to tell you how to make a specific game, we are here to help...
View ArticleAnswer by raoz
The problem is that Coroutine Attack() is started multiple times in Update(). Try this: private var gapTest = true; private var attacking = false; if(health.curHealth > 1) attack = true; else...
View ArticleAnswer by raoz
Get a server to do that:) Bake is a very heavy operation and will take a lot of time.
View ArticleAnswer by raoz
There is no way to make sure the messages are recieved at the correct time because of latency.
View ArticleAnswer by raoz
Hi, fellow Estonian, I don't see a lot of Estonians around here. It seems to be an memory access violation, could you maybe upload the game files so I can test it? Source code would help as well
View ArticleAnswer by raoz
Here. However, this is in C# so you have to convert it to Javascript, but it should work. static string listmembers(Object obj) { StringBuilder result = new StringBuilder(); FieldInfo[] fields =...
View ArticleAnswer by raoz
You are callinng it from OnGUI. This gets called whenever it can be, possibly multiple times a frame
View ArticleAnswer by raoz
Most likely this wont affect performance. Everything inherits from object class anyways. This might affect performance a tint bit, but that wont be noticeable. Edit: typed on smartphone
View ArticleAnswer by raoz
use rigidbody.AddForce for left and right, too. And to cap it off, I suggest a simple if block. Like, if you want to move it to the left of the screen and it has to move on x axis down until its x...
View ArticleAnswer by raoz
The autoload awake might be called before the PlayerStatus Awake, thus rendering the Playerload obsolete. The reason why it doesn't give you an exeptcion is that you are initializing the exptolevel...
View ArticleAnswer by raoz
If we say, that the index must NOT be oldindex + 1, then int ControlledRandom(int oldindex) { bool success = false; int newindex; while(!success) { newindex = Random.Range(0, max); //You need to insert...
View ArticleAnswer by raoz
function spawn() { var time : int = Time.realtimeSinceStartup * 1000; if((time & 0x01) == 0) //Checking if the time millisecond count is an even number(To make it come out of random side) {...
View ArticleAnswer by raoz
Vector3 newPosition = new Vector3(-1,0,0) * (moveSpeed * Time.deltaTime) should be Vector3 newPosition = computerDirection * (moveSpeed * Time.deltaTime)
View ArticleAnswer by raoz
My solution to this would be to develop your own security system, for an example, the server sends a random password to every player on connection and sends the same password when callingR PC on this...
View ArticleAnswer by raoz
transform.position.x it is, debug it out in the update and you see ot matches
View ArticleAnswer by raoz
Make speedincrease an array and have a pointer variable that you increase every time you increase speed. I hope you understand me. Like this: var SpeedIncrease : int[]; //Change this in inspector var...
View ArticleAnswer by raoz
It looks like it doesn't get pressed, because it must be pressed the moment it is drawn, or something in this manner. GUI.RepeatButton works, however, because it can be already clicked. But...
View Article