loading player with item to have ?
i have question difrent for this video if create loading for other scene how can you transport the player that you have with all item which has
Loading scene
#pragma strict
function OnTriggerEnter(Col : Collider)
{
if (Col.tag == "Player")
{
Application.LoadLevel("plezz");
}
}
You don't "transport" the player, I mean you could use don't destroy on load, but that's not what you usually do to achieve this. What you do is you save all the data you need about the player (his stats, health, inventory, etc.) before changing the scene, serialize it and write it to a file, and then on the next scene, you recreate the player with everything he has, using the saved data.
Answer by Nucl3ear · Feb 05, 2018 at 04:17 PM
Hey, I'm new here so I don't have a "code solution" for you, but you should check this tutorial
If you don't have time, the key might be "DontDestroyOnLoad(gameObject);" but the problem is usually more complexe
Hope it helps
Your answer
Follow this Question
Related Questions
Need your IDEAS!! (Players building their own base) 2 Answers
How do I make an object with a rigidbody2D and boxcollider2D not collide with another? 1 Answer
I need help creating some coding so that it loads the next level (2 Players) 0 Answers
Check distance between items and player not working 0 Answers