I can't seam to get this script to work for spawning an enemy.
Also I would like the enemy to be spawned randomly, how should I do that?
asked Jul 15, 2010 at 08:38 PM
If this is your script you probably get a syntax error because you're missing a dot between ("spawnpoint") and transform.position. Also instead of searching for the object named spawnpoint it would be a good idea to save a reference to the spawnpoint. (like you did for the prefab)
If you want to spawn at random position look into Random.insideUnitCircle.
answered Jul 15, 2010 at 09:48 PM