Quote (King Atrhur @ Apr 8 2016 08:02pm)
Also will update you soon on unity progress ducky. Seems he really is more interested into java script atm.
but he did manage to make a few small animations with a sphere in unity.
That's good. I think he will enjoy unity. I suggest telling him to look at the C# scripts instead rather than the Javascript.
Not only is C# more supported in Unity, it will allow him to download visual C# and create desktop apps. Where as with Javascript if he wanted to venture further the most that would come from it is web applications, unless he uses frameworks like node n shit for command line stuff. I personally would take C# over javascript any day since he can use it with Unity as well as make desktop applications with it.
There was one video series I can't remember the name, but it was a 3d tutorial on how to make a plat-former with rectangles and spheres. It showed how to apply physics and textures and stuff to the objects.
https://www.youtube.com/watch?v=lQASc-4Wfj0Was something very similar to this. I can't find the tutorial I seen from a few years ago though.
If he wants I can give him some of my scripts, for events and stuff. It basically allows you to send messages to different in game objects to manipulate them. For instance:
https://www.youtube.com/watch?v=EWh6Ta5Of4c if you look at the two lamp posts by the tree I have set the lighting effect to turn off and on based on the time of day by basically sending it a message to turn off/on:
Code
public class LightPostScript : MonoBehaviour {
public void OnEnable() {
Messenger<bool>.AddListener("Morning Light Time", OnToggleLight);
}
public void OnDisable() {
Messenger<bool>.RemoveListener("Morning Light Time", OnToggleLight);
}
private void OnToggleLight(bool light) {
if(light)
GetComponent<Light>().enabled = false;
else
GetComponent<Light>().enabled = true;
}
}
Here I add a event listening for "morning light time" which runs the function "OnToggleLight". From there the function "OnToggleLight" turns the lighting object attached to it on/off depending if the sent message is true/false. True making the light effect turn on, and false turning it off.
Sending the messages are simple:
Code
Messenger<bool>.Broadcast("Morning Light Time", true);
Will send a message to every game object, and if they are listening for "Morning Light Time" they will trigger their respective callback functions as specified above.
This post was edited by AbDuCt on Apr 8 2016 07:18pm