Hello, i’m new to unity and coding in general, i’m trying to make a 2d platformer but i’m stucked because of some issues.
I can’t assign my instantiated player prefab to camera or scripts in general, for example when the player touches an enemy he gets damage but the camera doesn’t shake, the enemies don’t attack him and the camera doesn’t follow him… I’m sorry if i’ve been unclear, english is not my native language, if you need any script just ask, thank you!
Hello and sorry for the delayed response. If you make a scene and drag your prefab into the scene, you should then be able to assign that instance from the scene to your scripts. Have you tried that?
1 Like
Hello, thank you for the reply, by the way i already managed to do it by making the sripts find any gameobject tagged player instead of dragging it there from the hirerarchy.
1 Like