• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

spawn

  1. GDK

    GameMaker [SOLVED] Spawn Random Enemies

    How to spawn different types of enemies from the same spawn object but not at the same time (one enemy type at a time)? Below is what I'm currently using to spawn oEnemy every 3 secs... if (!alarm){ instance_create_layer(x,y,"Instances",oEnemy); alarm[0] = room_speed * 3; }
  2. G

    Spawning enemies with certain values?

    How would I spawn an enemy from another object and then set a variable within that enemy? I want different enemies to have different values based on the objects they come from.
  3. P

    GameMaker Making projectiles fall only in one room

    Do you guys know how to make projectiles fall only in one room? When I'm making emiter it constantly spawns projectiles in all rooms I enter despite that the emiter wasn't persistent.
  4. 6

    Variables at create

    Hello! I'm making a game and on a few levels I want survival mode. For this i made a spawner object that has 2 variables 1. Enemy type //Which enemy to spawn 2. Delay //Delay beetwen spawns When the player enter a level the level is being called from a script (the script spawns all the objects)...
  5. F

    Looping Clouds – spawning, destroying, adjusting variables

    Hey! I'd like to have cloud shadows that move across the screen, destroying themselves once they move off screen, and then re-spawning. I have obj_cloud where I define the properties: image_speed = 0; image_index = irandom(3); image_alpha = 0.1 * random(0.3); image_xscale = 1 + random(0.2)...
  6. V

    RPG first person enemy spawn fight

    Hey there!! Sort of having trouble on making a first person dungeon crawler game. Basically I want to make my enemy spawn in front of the player as in these games but having trouble calling out the enemies to appear or even switch to a scene of a new area with a better background but random...
  7. B

    How to make the enemies spawn after? (Experts)

    How to make the enemies spawn after 8 seconds of the game starting, not right away?
  8. F

    Legacy GM Need to find a way to check more than 1 pixel at a time for spawning

    Hi, so I'm trying to get some spawning done with my objects, but of course, they'd often spawn on top of one another. So I tweaked the code in an attempt to avoid this, but they would still spawn on top of one another. Here's the code for spawning these objects so far: Alarm[0] event in the...
  9. Y

    Legacy GM enemies spawn at the wrong place

    ///player collision if(place_meeting(x, y, Obj_Repoth1) && Is_Active = true){ Is_Active = false view_object[0] = -1 global.In_Battle = true while (instance_number (Obj_Mognorian1) <= Spawner) { randomize() randx = irandom_range(view_xview[0], view_xview[0] +...
  10. Y

    Legacy GM Make enemies spawn only in direct view of player

    so I'm randomly spawning enemies in an arena. however this arena has some spots where there are no other objects so sometimes the enemy will spawn there. however the enemy is chasing the player using a grid and a path so if it spawns in a spot that is blocked it never reaches the player and the...
  11. H

    Make bullets go to the correct direction depending on turret angle

    Hi! Alright so I'm making this small 2D bullet hell game where you have to avoid bullets which turrets are firing at you. It worked just fine when there was only one turret, but when I started adding more turrets issues started to occur. Mostly because of this code right here in the bullet's...
  12. G

    Legacy GM [SOLVED] New doubt - Fast spawn with score

    First: I'd like some help, I've created a random DnD spawner all over the Room. However some objects are being spawned at the corners of the screen with the object / sprite cut in half. I want to leave a margin of 35 pixels on the right and left, 100 pixels on the top and 150 pixels on the...
  13. A

    random spawn obj scale

    if you make a random spawn obj that spawns random sizes how do u make the obj horizontal size match vertical size wen spawning randomly different sizes?
  14. B

    Random spawning makes objects end up on top of other objects

    Hello everyone, I don't have a lot of experience in using game maker yet, so I hope you can help me out with the following problem. I am making a game in which a person in walking around in a supermarket and gains points by colliding with healthy foods and loses points by colliding with junk...
  15. M

    Shooter: enemy spawn problem

    I am having trouble making my control object spawn different enemies. I have tried making different alarms but it only wants to spawn the basic enemy. If I put the spawns in the same alarm it will spawn them all at once which will impossible for the player to deal with. The spawn code is the...
  16. M

    moving things

    So I have a room menu, that is... the room with buttons play and exit. When it clicks play then it moves to another room where there are spawning enemies... but when the char dies it goes back to room menu; the only problem is that then in room menu enemies also start spawning... how do I fix...
  17. S

    Legacy GM Check if room exists by name instead of by index

    I've made an elaborate system of room generation but it works by checking the room name instead of room index. It's not working because room_exists checks for the index. How do I make it check for the name instead?
  18. B

    Random objects at random, yet fixed, spawns

    Hey there. Total noob to the community, so I am guessing this is the appropriate place for asking about code. I have a party-like game where players go around an arena for a set amount of time and try to gather items and then are taken to a place where they can equip them and then fight to the...
  19. N

    setting vspeed/hspeed upon instance_create

    Hey all! So I have a few different spawning objects. I would like to set a certain vspeed/hspeed for the instances created by the each of spawning objects. For example an instance created with obj_spawner_a would have a vspeed of 1, but if that same object was instanced through obj_spawner_b...
  20. K

    Enemies spawn with delay and different paths(How to?)

    Hello, I have currently a problem with making same enemies spawn in 2 groups with 4 of them in each group and so that they have different path assigned for each group. In the future I want to add much more pathes so duplicating enemy and set path on the "create" event is not an option for me...
Top