J
James7285
Guest
I have an object in my game that I want to randomly spawn a new one every 60 frame.
Under the create code I have:
Then under the alarm 0 code I have
Problem is when you run the game, after 60 frame it creates 1 instance of the object, after a further 60 it creates two object, then four, then eight and keeps doubling every time. I can't work out why that is?
I just want it to create 1 new instance each time.
Under the create code I have:
Code:
alarm[0] = 60;
Code:
alarm[0] = 60;
instance_create(random(room_width),random(room_height),obj_powerup);
I just want it to create 1 new instance each time.