Any code similar to this ?

hey , i am new here and actually this is my first post xD

so i am trying to find a code that is like a timer or something . like :-
setTimer(Function,Time) after specific time load this function
and also
one more question
how can i make an object move
i have a cube i want it to move to this exact point X,Y,Z in specific time and go back or maybe i want it to increase Y + amount or something .
so the cube will move from X:1 to X:10 in 5 seconds ie

thank you.

good to have you on the forums. might I recommend going through some of the tutorials? A lot of what your asking is basic questions that are covered in there.

like which one exactly ?
i am currently looking through this one http://forum.unity3d.com/threads/34015-Newbie-guide-to-Unity-Javascript-(long)
which one covers me questions ? please give a link or a name :smile:
thanks .

for your first question you can use Invoke.

As for your second part which is moving, you might want to take a look at transform And using things like translate to move and using an if loop to check how far it move before you switch the direction it move.

thanks allot zine :smile: