I want to write something like this:
Foreach Object1 {
Run Function CreateObject3()
}
Foreach ( imagepoint in Object1){
Create Object2 at imagepoint.x, imagepoint.y
}
Function CreateObject3(){
object3Count = Random(0,4)
for (x=0; x > object3Count; x++){
Create Object3 at imagepoint[x + 4]
}
}
I've tried to do this, but I keep getting an infinite loop.