Hello everyone… im making a video game where I have a main character who moves with the arrows, and then theres a secondary character who follows him around. Any ideas of how I can manage to do that? Thank you!!
First: Do not ask questions using massive text and colours. It’s not a contest to see who’s post can stand out the most and it makes your questions really difficult to read.
Second: Try the tutorials on the unity website, they’ll take time to work though but give you a good grounding in how to do all sorts of things like moving objects in games:
indeed with the 1st comment by cameron damn! lol
with that said it seems like your really just starting out. Id start with just getting a object to move with the arrows, and not so much about characters yet as that is a lot more advanced.
what youll want to do is really look around in the script reference, heres how you identify when a key is pressed
http://unity3d.com/support/documentation/ScriptReference/Input.GetKey.html
then youll need to move the object with the translate command
http://unity3d.com/support/documentation/ScriptReference/Transform.Translate.html
make a new javascript and put those together and youll get a script like this
function Update () {
if (Input.GetKey ("up"))
transform.Translate (0,0,2*Time.deltaTime);
}
drop that script onto a box and when you hold the up arrow, it will slide the box on the z axis
that should get you started