Thank you! Should be fixed now. Maybe need to use direct version or clear cache if you still see this error.
Not sure it’s a bug or my misunderstanding.
I try to set the opponent enemies be raged until they are in a close range to the EnemyHero, for example when they reach x<15 in the figure. However, they are raged much earlier than expected. I also tried distanceTo(), but no help.
Hello, i assume you are using C++
I tested it and it seems that one line if statements will break and execute regardless if the condition is met or not if there is another statement to execute below the single line statement.
In this case, the i++ increment statement breaks the if statement and it will run regardless of the condition.
The solution is to add curly brackets for the one line if condition.
Thanks Venneth’s suggestion. The i++ is intentionally run regardless of the condition.
I change the if condition to false, and the statement inside is still executed. Funny.
It turns out to be the problem with the while loop (again haha). After switching to for loop, it works smoothly.
Someone reported that FF runs quite slow. Looking at the resource monitor tells me that CC occupied several GB RAM, which is quite large consumption for such a program. Is there a memory leak?
Hello, can you describe the prerequisites/ conditions that were in place when you saw that the used memory was going into GBs?
Are you perhaps re-running the simulation on the page repeatedly without refreshing the page?
maybe problem with inside code idk