suriyun-production / mmorpg-kit-docs

This is document for MMORPG KIT project (https://www.assetstore.unity3d.com/#!/content/110188?aid=1100lGeN)
https://suriyun-production.github.io/mmorpg-kit-docs
49 stars 11 forks source link

[SUG] Optional Delayed Spawn Bool #2403

Closed BJPickles closed 5 months ago

BJPickles commented 5 months ago

There's a few folks (including me) using SECTR or World Streamer 2. The player character spawns before the terrain chunks have loaded meaning the player somtimes falls through the floor.

Falling through floor at spawn: https://i.imgur.com/metYBM4.mp4

An optional bool in GameInstance to hold player spawn X amount of seconds.

image

Will let chunks load and then player will land on terrain.

insthync commented 5 months ago

With time?, how can you sure it will be enough for all devices?

BJPickles commented 5 months ago

Seconds was my initial thought. Not sure about that last one, I suspect trial & error unless you have an idea?

insthync commented 5 months ago

Yes, I have an idea, just do like I did to IsReadyToInstantiateObjects function

BJPickles commented 5 months ago

Ok sounds good. My main thought was not wanting affect other people's projects so still having it as Bool.

Good idea, waiting for the terrain to load before instantiating player

insthync commented 5 months ago

Done, let's test it later.

BJPickles commented 5 months ago

Hi Suri, sorry to bug you. I can't find where you've put it. Is it this? image

insthync commented 5 months ago

No, it is not that ready to use like that, you will have to write codes to determine that the client is ready or not, like as how the IsReadyToInstantiateObjects is working

BJPickles commented 5 months ago

Thanks for your quick response! That makes sense, thank you for explaining. Unfortunately I can't code very well so I won't be able to test this my apologies