Search Unity

need a help to a simple script

Discussion in 'Scripting' started by javert, Oct 31, 2013.

  1. javert

    javert

    Joined:
    Oct 5, 2013
    Posts:
    7
    hi. I`m newbie and I try to do a simple script, but I don't know how.
    this is how I imagine - player touch the cube - after this 4 arrow appears , one arrow for each direction. if player touch one of arrow the cube will move to that direction. the cube wont move across obstacle`s.the arrows only appears and the cube move only one time. after the player touch the cube and select his direction, even if touch again the arrows won't appears(if an another cube on the left side of the cube n1, only three arrows will appear, where is the cube n2 will not turn up anything and if the player chooses the cube n2, no arrows will appear where cube n1)

    can anyone help me with this?
     
  2. fire7side

    fire7side

    Joined:
    Oct 15, 2012
    Posts:
    1,819