hmm... Learnt some Java and C++ using non standard libraries and really horrible coding practices in school
then I just followed the basic unity project tutorials. There are 3 of them, and they cover different aspects of scripting. So this is strictly not coding at all. There are easy references within unity, with code snippets in C# and JS, so it's more about taking the code and changing the values. I did write from scratch, but there is like 10 lines of code in it. Im gonna post it if it helps, and also to show that it's really easy to do, especially if you know modeling.
this is the script to make the camera follow the ball
that's it. There are such small scripts to move the ball, make it jump, and rotate the merry go round.using UnityEngine;
using System.Collections;
public class CameraController : MonoBehaviour
{
public GameObject Player;
private Vector3 offset;
void Start ()
{
offset = transform.position;
}
void LateUpdate ()
{
transform.position = Player.transform.position + offset;
}
}
The coding is simple, I mean I don't know Java or C# but if I did, then I would be to lazy to find out what that means
Worst sig EU, got bored
That piece of code looks interesting, just trying to figure it out. I get the gist of it.
I think the camera is being repositioned to the ball (player) offset values + new position. /it's a rough guess BTW, don't shoot me if I'm wrong
I have a book on programming in C# somewhere! I might dig that out later in the year too many languages wanting to learn, some human, some computer.
C++, C#, API, Ruby, SQL, Unix.
Back in the day I was a mean COBOL programmer, seriously, don't laugh! Did some Pascal and object oriented Pascal too, even did a tad bit of machine code, ok it was very tiny bit, like programming to say hello world.
Nowadays, my priority is to make 3D stuff, for hobby and hopefully later on the year for a nice bit of extra income too. At the moment I'm undertaking a project for an online world, it's in the design phase and soon if I can get out of procrastinating it will be a 3d model.
Last edited by Waheedski; 07-19-2014 at 09:35 PM.
Make a mmo :3
I decided to take coding as an option for my exams at school, we are using Scratch ( It's some stupid 7year old program in which you can move and object around your screen), I cried
Worst sig EU, got bored
Bookmarks