Skip to content
User Avatar
#3983
Auto-translated
Madara_X
Friends, could you tell me how many simultaneous functions can be executed in the game? I'm currently working on character animations: I create separate functions and launch them using startThread(), but I noticed that the game freezes completely after the second startThread() command. If I combine all the animations into one function, then everything works fine.
There can be many threads (within reason; perhaps on a few dozen, someone might start experiencing lag). Personally, just to be safe, I only run creature animations if the player is nearby (you can, for example, check the distance between the hero and the creature at the beginning of the turn), but that's just my paranoid mode. Please provide a simple example of how you are launching them and what is happening.
РПГ-сценарий для HoMM5: Путь героя
ЧаВо по созданию карт для HoMM5: ЧаВо