B
Bazzawill
Guest
Hi there,
I am using the following code to randomly generate a power up blocks in my game however every time I run my game the blocks are in the same spot
I am using the following code to randomly generate a power up blocks in my game however every time I run my game the blocks are in the same spot
Code:
if (room == rGame)
{
repeat(2)
{
var xx = irandom(room_width);
var yy = irandom(room_height);
instance_create_layer(xx,yy,"Instances",oPower);
}
}