Search Unity

assign prefab with a target to follow, please help =(

Discussion in 'Scripting' started by Zersixs, Mar 30, 2014.

  1. Zersixs

    Zersixs

    Joined:
    Oct 7, 2012
    Posts:
    9
    Hi! I'm trying to instantiate a cube on my player when I press the space button and then the cube should follow the player all the time, the cube I instantiate is supposed to be a horse, I could instantiate it at the player position but making it follow the player is where the problem comes in play. I can't assign the horse prefab a target to follow, please help! :(