|
Post by mostlyapt on Apr 18, 2020 22:00:53 GMT
Hi,
In my level settings I have only one level with a single elimination wave and the Last Level Completed setting is set to Win.
Issue is that the moment all the items are spawned by the only elimination wave, Win event is getting raised and caught by configured custom Level Settings Listener. Is this expected? As I was assuming that unless we have eliminated specified number of items as per Wave Completion % listener will not get Win event.
After some debugging found that only when Wave Completion % is set to less than 100% this issue occurs. What am I missing?
Also, it will be really helpful if we have an option None for Last Level Completed, so that developers can decide next step based on Wave(s) completion events or some custom logic?
Thanks!
|
|
|
Post by DarkTonic Dev on Apr 18, 2020 22:46:54 GMT
Your assumption is correct and that may be a bug. I will try and reproduce Monday.
As for the None option, that may make it impossible to win unless you implement custom logic. Which doesnt sound like a good idea to me. Do you have a concrete example?
|
|
|
Post by DarkTonic Dev on Apr 19, 2020 3:58:20 GMT
So I gave it a shot by deleting things out of Example Scene #1. There's a single elimination wave with 1 spawner set to 90% wave completion. It doesn't trigger "win" until I kill 4 of the 5 enemies (which is 80%, and wrong). I did just fix the math error to round instead of round down.
I saw another error logged in the Console which I need to fix but it definitely didn't trigger "win" early.
If you need me to fix what's going on in your build I will need to be able to reproduce it on my system. Can you send me an example Scene that shows the bug? Otherwise I'm powerless to do anything.
Thanks, -Brian
|
|