|
Post by Husky on Nov 16, 2022 16:00:53 GMT
How would I go about adding sound effects and particle affects when a unit attacks or does a spell? Because I have no idea how I would go about doing that? Like for example for the movement of that characters they would make sounds for when they move.
|
|
|
Post by Husky on Nov 16, 2022 16:08:12 GMT
I also have a issue where the win text is able to go through and play out but when I go through the lose state it freezes on the first line and can't continue
|
|
|
Post by Admin on Nov 18, 2022 14:43:11 GMT
Sorry for the slow response, it has been a busy month for me. Adding sound effects and particle effects is not a "quick" answer, but I can say that Unity learn has a ton of resources that should be able to help you get stated: learn.unity.com/tutorial/sound-effects-scriptinglearn.unity.com/tutorial/introduction-to-particle-systemsAs for the lose text, the bug was introduced in the BattleState script's AddListeners method. The problem is that I was ignoring input when it wasn't the player's turn. You could fix it in place using something like this: if (driver == null || driver.Current == Drivers.Human || IsBattleOver()) There are other options for fixes, such as you could have set the drive to null when battle ended.
|
|