GML-Quellcode
- maxbuildlevel=7
- j=0
- do
- {
- for (i=maxbuildlevel; 1<=floor(room_height/32); i+=1)
- }
- type=random_range(maxbuildlevel,i)
- if type<(maxbuildlevel+2)(createobj=block_erde)
- else(createobj=block_stein)
- if i>=10 and i<20 and random(1) <=0.08(createobj=block_iron)
- if i>=20 and random(1)<=0.01(createobj=block_diamond)
- instance_create(16+32*j,16+32*i,createobj)
- );
- j+=1
- )
- until (j>floor(room_width/32));
- instance_create(irandom(room_width),(maxbuildlevel-1)*32,player)
Was ist daran falsch???
Fehler:
GML-Quellcode
mfg R3booz