|
Post by hairgrow on Jan 23, 2021 20:52:56 GMT
Whats the difference between Kill and Despawn? When using Pool Mini Boss and changing the Remove Behavior from Kill to Despawn, there doesn't seem to be a difference. I was under the assumption that Kill will destroy the object and remove it from the scene, while Despawn would just disable it. But when changing the Remove Behavior, the objects still remain in the scene in either scenario.
|
|
|
Post by DarkTonic Dev on Jan 23, 2021 22:37:50 GMT
Whats the difference between Kill and Despawn? When using Pool Mini Boss and changing the Remove Behavior from Kill to Despawn, there doesn't seem to be a difference. I was under the assumption that Kill will destroy the object and remove it from the scene, while Despawn would just disable it. But when changing the Remove Behavior, the objects still remain in the scene in either scenario. Kill means that death prefabs from Killable script will be spawned. Despawn would trigger a vanish prefab from Killable if configured. Either way, when Pool MiniBoss is disabled, the clones of each item will be removed from the Scene and Pool Boss.
|
|
|
Post by hairgrow on Jan 23, 2021 23:27:08 GMT
Ahh gotcha. Thanks. I was confused based on my own interpretation of what Kill and Despawn meant. I thought Kill meant the object will be destroyed/removed from the scene while Despawn meant the object was only disabled in the scene. I do like how Pool MiniBoss works. In my case, I've created one specifically for generating a pool of projectiles that can be networked. So would it be OK to have 1 game object that is toggled on & off when the Player has connected or disconnected? My first implementation consisted of 2 game objects. 1 Pool MiniBoss for Offline Projectiles and 1 Pool MiniBoss for Online Projectiles. Or would it be fine to have just one? Each Pool is using the same prefab.
|
|
|
Post by DarkTonic Dev on Jan 24, 2021 0:21:19 GMT
Actually, I just went to read the docs here to see if they needed updating: www.dtdevtools.com/docs/coregamekit/PoolMiniBoss.htmSo it says that the behavior chosen only does anything when Pool MiniBoss is disabled. I believe I described it in a confusing way above, but the docs are accurate and I think they're clear as well. Not sure if you had read them and you think something can be clarified there? I'm always up for improving the documentation if you have ideas. And yes your suggestion sounds perfect, I believe that will work well! You can have as many MiniBosses as you like, whatever helps divide things up in the most logical fashion for you. -B
|
|
|
Post by hairgrow on Jan 24, 2021 2:15:51 GMT
I read the documentation as well and I understood that the Remove Behavior Type would take affect when the Pool MiniBoss is disabled. I just don't see clear definitions for terms like Destroy, Die, Kill and Despawn.
For instance, when reading the docs for the Death Timer on the Killable object it states:
Death Timer (sec): The number of seconds before the Killable will destroy or despawn itself, depending on the next field. Time Up Action: Choose Do Nothing, Destroy or Die. The action you select will happen when the Death Timer has finished.
What exactly is the difference between Despawn, Destroy and Die. There's no explanation for what takes place when those options are chosen. Will the Killable object be removed from the scene or just simply disabled?
So When using Pool MiniBoss, If Auto Remove Items is checked, is does indeed remove the items, BUT, without knowing exactly what Despawn or Kill, means, I assume I'm doing something wrong, because I think Despawn means the objects will be disabled by Pool MiniBoss and Kill means the objects will be removed from the scene, by Pool MiniBoss.
Unless I missed it somewhere, it would be helpful to explain what those terms mean to a new user when using CGK.
|
|
|
Post by DarkTonic Dev on Jan 24, 2021 4:39:31 GMT
Yeah I see where that can be confusing. I'm going over the Killable docs page now and I think I will replace all "destroy" verbiage with "kill" And then I'll define what is the difference between "despawned" and "killed" up at the top. "Destroy" will go away since that sounds like GameObject.Destroy, which of course we never do because Pool Boss. There will be only 2 options.
Thanks for pointing that out!
|
|
|
Post by DarkTonic Dev on Jan 27, 2021 22:34:30 GMT
I have updated the documentation, mostly on the Killables page and the Pool Boss page, plus labels in the code, which will be released soon. There's a note on despawn vs die on both pages.
Thanks!
|
|