T
tiberionx
Guest
Hello
So im doing the space rocks tutorial , and instead of making the rocks go through each other I made the object solid and bounce off each other
now when i do the random spawn thing they sometimes spawn on top of other rocks and just stays there.
I used the place_free command, it kinda works i think but im not sure haha
So im doing the space rocks tutorial , and instead of making the rocks go through each other I made the object solid and bounce off each other
now when i do the random spawn thing they sometimes spawn on top of other rocks and just stays there.
I used the place_free command, it kinda works i think but im not sure haha
GML:
if(choose(0,1) == 0){
//sides
var xx = choose(0, room_width);
var yy = irandom_range(0, room_height);
} else {
var xx = irandom_range(0, room_width);
var yy = choose(0, room_height);
}
place_free(xx,yy){
instance_create_layer(xx,yy, "Instances", obj_rocks);
}