For each loops run infinite, cant understand why
I am doing a game where in our world, when the main character overlaps on a tile or platform, the flipbook changes and the tile/platform is 'transformed'
I am trying to make a completion bar for the world, so the player can try and track how much of the world they have transformed. In my HUD, I am trying to do the function that would update the percent bar.
Basically the problem is in the for each loop. I just want to see if the variable of the platform for transformed = true, and if so, increment my NumberTransformed counter. For some reason, it just increments it infinitely forever. I'm not sure if I have to incrememt the array index, or if ue4 does it automatically, that's why on the bottom part of the blueprint (it looks like the same class as the other one but its actually another one, the names look the same) I have it increment the index. It didn't help solve my problem.
Can anyone offer any guidance?
asked Apr 27 '16 at 06:56 PM in Blueprint Scripting
Don't know for sure if this is the thing that you are doing wrong, but in your second foreach loop you add to the index, you don't need to that since it is a foreach loop
answered Apr 27 '16 at 07:00 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here