H
Heat4Life
Guest
So I want to Limit the Bombs on my In-Game... For example: when there is 5 Bombs on the room, I want It to get destroyed... So currently I have this on my Bomb Object:
Create Event:
Step Event:
Alarm 0 Event:
... so How to achieve this? Thanks!
All answers would be greatly appreciated!
Create Event:
Code:
alarm[0] = 100;
Code:
if(place_meeting(x, y, obj_wall)) {
x = random(room_width);
y = random(room_height);
}
if(place_meeting(x, y, obj_bomb)) {
x = random(room_width);
y = random(room_height);
}
Code:
bomb = instance_create(random(room_width), random(room_height), obj_bomb);
bomb = (x = random(room_width));
bomb = (y = random(room_height));
All answers would be greatly appreciated!