In my opinion, you should use the "for each integer" loop instead of a "while" loop. Then you won't have to manually increase or reset the variables. Like this:
(copied from another post of mine, but it's sort of the same thing)
In my opinion, you should use the "for each integer" loop instead of a "while" loop. Then you won't have to manually increase or reset the variables. Like this:
(copied from another post of mine, but it's sort of the same thing)
Spawn units Events Game - Map initialization Local Variables x = 0.0 <Real> y = 0.0 <Real> Conditions Actions General - For each integer y from 0 to (Integer((Height of Spawn 01))) with increment 1, do (Actions) Actions General - For each integer x from 0 to (Integer((Width of Spawn 01))) with increment 1, do (Actions) Actions Unit - Create 1 Marine for player 1 at ((Bottom-left of Spawn 01 bounds) offset by (x, y)) using default facing (No Options)
THANK YOU! Sheees, go go for loops (actually gogo writing, have to learn Galaxy). I feel so stupid, 5 years programming and I fail at a thing like this.....
Can someone please tell me why I keep obtaining only one column of eggs instead of a polygon 10x12. Thank you.
You aren't resetting lv_j after the inner loop finishes.
Yup, what Riley said.
In my opinion, you should use the "for each integer" loop instead of a "while" loop. Then you won't have to manually increase or reset the variables. Like this:
(copied from another post of mine, but it's sort of the same thing)
Need a delete post button
<- Its right there to the left. (You can do it yourself)
what they said
@SouLCarveRR: Go
There is a delete post button
@RileyStarcraft: Go
THANK YOU! Sheees, go go for loops (actually gogo writing, have to learn Galaxy). I feel so stupid, 5 years programming and I fail at a thing like this.....