Tag Info

New answers tagged


try opening a new thread like in this video tut and use that for your connections. https://www.youtube.com/watch?v=6G_W54zuadg there may be some useful info in this video hope it helps


How can I know whether a player is connected? There are several ways, but you could use an AJAX request that pings every 10 seconds. If the user last timestamp was in the last 10+1 seconds, he should still be 'connected'. How can I detect when a player closes the browser, and set them to disconnected? Use the above solution, the user simply times ...


I don't think it is a good idea to mix logic and art; or more precisely, base your logic on your art. In simpler terms, don't do what you're doing. Separate logic from art. The idea behind this is that the person who draws the sprites should be able to do any kind of drawings and change them at will, without having to worry that artistic changes will have ...


You may want to create a button for the script. void OnGUI() { if (GUI.Button(new Rect(10, 10, 150, 100), "Go to Level1")) Application.LoadLevel ("Level1"); } For more information about the GUI scripting, check this out: http://docs.unity3d.com/Manual/gui-Basics.html


Have you thought about using bezier curves? Check out this link that explains them. http://blog.demofox.org/2014/03/04/bezier-curves/ You'll have to come up with the intermediary control point(s) but it should be pretty simple to do. Hermite interpolation might be more what you are after, but that is mathematically equivelant, just in a different form. ...


You've listed the UDK, c++ and javascript as tags, which is more than a little confusing, so I'll use pseudocode examples here. Rather than setting score based on current position score = distance; increment their score based on a change in position over time. Depending on your code this should be fairly easy. If the character is moving then you're ...

Top 50 recent answers are included