i keep getting the error message "set a player before spawning it" which is probably really easy to fix but iv been pretty confused.
i start the scene with a bear player and a main camera already in the scene, i dont spawn anything using a main menu. if i go out the door of the room i am in i have a scene changer that is supposed to take me outside, which is another scene. then i always get the error above. how do i fix this? i set the combatant up in the ork framework...
its kinda confusing as i am using a platform engine with the ork engine. it seemes to work ok, its just when i need to spawn in the player, the camera isnt their so i gave errors and vice versa since the player has scripts that rely on the camera and the camera has scripts that rely on the player. i just want to be able to spawn the player into the game... any ideas??
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
to fix that i tried having them already in the scene... doesn't seem to work though. i did get them somehow to spawn i think though but then the camera couldn't find the player prefab to follow it. since it was a clone i think was the problem...sigh.. well thanks for trying to help at least. :)
You can make a prefab of your camera and a prefab of your player and sometimes the scripts allow you to slide that prefab in so you don't have this kind of problem.
If you really need to have the player in the scene already, add an Add Combatant component to the game object to set the player's combatant. Use the game object as an actor in your event and use the Set Player step to set it as the player.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!