why some spawn waves has only one coin here and the spacing is incorrect

hi guys do you know why some waves has one coin even though the random integer of the third for loop last index is min 5 and max 9 and overall is adding third for loop make this happen i mean random int between min and max coins per wave and why is the spacing is incorrect

The third loop goes between index 0 to a random number between 5 and 9, which means that it can be 0,1,2,3 etc up to the random number between 5 and 9.


even if i changed the first index to 2 some waves still has one coin

Have you tried to change the second and first loop so they start with something like 2 too? (so no loop has a 0 or 1 as start index)

yea i tried that is there something wrong with my spacing


ok i fixed it by doing this

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.