|
Post by cyber2016 on Aug 13, 2016 14:51:04 GMT
Hello, yes I'm back with more Challenges.. 1 is using the Killable on collectibles seems Complex if not fustrating as I like the idea of Spawn & Despawn using the same Script (That's a +) actually; but I need to Accomplish the following as a Whole:
1. I pool the collectibles in PoolBoss (works like a dandy)
2. I Spawn the collectibles when the Player walks in each Area (using Trigger Enter/Exit - Again great) The problem is, cause my collectibles Asset is using a Script to Add $$ to each Type of collectibles I have to hide each item first in the Scene so I can pool in poolboss with Counter Script intact (prefab to poolboss lose Counter)
3. Next, as the player runs into the collectibles; I have a Sound that plays and a Particle Spectacle lol!
Basically, is there a another way to use the Killable Script? I've watched the 2d scroller Video and doesn't cover this area, nor I can't find any information on using your Asset for this purpose. Perhaps a Added Script like Killables for collectibles (Solely for this) would be Awesome!... Ty!
|
|
|
Post by DarkTonic Dev on Aug 13, 2016 15:21:59 GMT
#3 is easy with Master Audio plugin. Particle part you can use a death prefab.
#2 I don't understand what you mean by "add $$"? Please explain.
|
|
|
Post by cyber2016 on Aug 13, 2016 16:27:03 GMT
Oh, Yes #2 "add $" ... Actually I meant Add $ Score EX: $500 when a Player collects Item. This was a Counter Script Attached to each collectible... However when I saved the prefab the setting was gone, therefore I couldn't pool the prefab itself, rather a instance of it... So I put a Spare collectible hidden wherever in my Scene, put this in PoolBoss, Spawn them when I need them & everything seems fine, hopefully Lol!.. I read about Killable being used for collectibles which sounds Great. Thanks for suggesting #3, using the Master Audio plugin. Excellent idea! I'm glad I bought that Asset, it's doing Wonders for my Game Music )
|
|
|
Post by DarkTonic Dev on Aug 13, 2016 17:08:08 GMT
Why don't you use the "Death World Variable Modifiers" section to add the $? That's the functionality this is meant for. We use it for pickups in our games.
Did you hit "apply changes" to the prefab after changing it? If so and it didn't save, that's a Unity bug...
|
|
|
Post by cyber2016 on Aug 13, 2016 18:46:00 GMT
Yes, absolutely tried that a bunch of times. I clicked on the "Apply" and the changes stay in the Scene Instance of the prefab but not in my _prefabs Folder... Oh, well guess.
About the "Death World Variable Modifiers" section; I really dig that if "Destroyed"/Score/[Add]
//For collectibles, I guess the "Start Attack points" set at: 0 - this way my Player doesn't receive any damage? Just reading over the Doc's, I think you mentioned that.
Again Ty.. I'll play around with this, very powerful stuff!
|
|
|
Post by DarkTonic Dev on Aug 13, 2016 20:55:01 GMT
Correct, do attack points 0.
Let me know if you get stuck on anything else.
|
|