• 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!

spawning

  1. 1

    GameMaker Black screen when running code-

    I am a beginner to using gamemaker, and i am currently making my first platformer game. I was coding the generation of coins on my map and my code was finally working, and the game ran as expected. However after making no changes to the code, i tried to run my game again and the game screen is...
  2. J

    how do I spawn particles at a certain location?

    I wanted there to be a burst particle, every time i destroy a block in my game, the object disappears and spawns particles. But I don't know how to spawn the particles in a specific location, and have been researching and trying how for 3 hours. Could anyone help with this. If you could make it...
  3. M

    Block generation problem

    I am making a run and jump game, and I have the following code in a spawner object: Create event: global.spd = -4; altbloque = 480; alarm[0] = 0; Alarm 0 event: randomize(); global.bloque = choose(1,2,3,4,5,6,7); switch (global.bloque) { case 1: altbloque = 576; break...
  4. PeXi81

    Spawning collectibles on the walls...

    Hello! I created a simple topdown sample game where player have to collect coins. But when the coins spawn...they could spawn on the wall objects as well and if there is not wall they could spawn off the screen. That's not good but how to fix that? Here's the code for spawning: //Spawn Coins...
  5. 2

    Most CPU Efficient/Fastest Method for Recording 1000s of Instances to "Grid"

    I'm planning on making a spawning/despawning system. Because the initial data grab is likely increase lag/load time to start the level I need to know the fastest way of grabbing whether a desired object (or it's child) is at grid intervals and 4-5 of it's user made variables. The lists must be...
  6. WasabiHeat

    SOLVED creating an object at the tip of a rotating object

    I've been learning GMS with Shaun Spalding's platformer tutorial (big props it's some good stuff) but one thing he did kind of irks me and it's that the bullets fired from the player character's gun are created at the origin of the gun instead of at the tip of it. With the way he coded the game...
  7. Deadly Serious Media

    GML Area Spawning

    Hey everyone! So I'm working on our third GM game and needed a problem solved. Not sure if I did it right but it works for my purposes. We wanted destructable ground tiles but placing 8x8 px tiles all over the place was a pain. I build this simple object spawner. You place a ground marker in...
  8. A

    Randomly Spawned Enemys

    I am attempting to get randomly spawned enemys within a 1920x1080 room, but every tutorial/forum i have visited was pretty old and none worked. if somebody has a script, please let me know.
  9. S

    Spawning 1-5 Random Objects Every 30 minutes (solved)

    Okay so, my intent is this: At the start of the game, 1-5 Objects (monsters, its a monster game) spawn randomly out of a set of 50 (right now only 2 test objects though). ((it also might be helpful to know that its a set of 50 for day and another set of 50 for night, running hopefully in real...
  10. T

    GML Visual Spawn objects from middle top of a object

    Hi I am kind of new to programming and I am trying to make cubes spawn randomly from center top of an object/sprite, so this is what I currently have... and here is the code for the object that I want to spawn... but it end up spawning the cubes a bit to the right of the object and not in the...
  11. giraffeman210

    Instance Help DnD

    I am working on a game using drag and drop. In my game instances spawn at random and then roam until destroyed. I would like these spawned enemies to shoot a bullet object in whatever random direction they are facing but I don't know how to do that without the bullets moving in the direction of...
  12. Atbit

    GML [SOLVED] Enemy spawning

    So, I have a problem with a very simple enemy spawner. I created a object spawner with alarm[0] which looks like that: in "Create": spawnrate = 100; alarm[0] = spawnrate; in "Alarm 0": instance_create_layer(random(x), random(y), "enemy_layer",en_spawn) alarm[0] = spawnrate; and in "Alarm...
  13. S

    Persistent gun and random generation map

    hi everyone, I'm new to the forums, so apologies for any noob issues. I'm currently using a lot of the code from Heartbeast's wonderful YouTube series on randomly generated maps. The issue I'm having is that the player is spawned on each new level and the gun they possess when they complete the...
  14. J

    GameMaker Object Random spawn locations

    I have put a chest in my game, when opened it drops potions and gold. I am trying to make them spawn randomly around the chest when opened but they always spawn in the same place. this is the code I am using for when the player presses "F" near the chest. if (distance_to_object(oPlayer) < 32 )...
  15. J

    Legacy GM Alarm doesn't work?!

    I don't understand, why the spikeballs aren't spawning 20 pixels above JOHN. Please help me, I can't continue programming... Thank you :)
  16. S

    How to check if there is an object before spawning an enemy!!!

    Hello! So I have a problem with my enemies spawning on items and each other, and not being able to move. Can someone show me the code to check if there is not an object in the way before spawning the enemy? I know it’s simple, but I’m self taught. Thanks for your time!
  17. yvodlyn

    GML Spawning With Timelines

    Hello everyone, I'm actually making a spawning system with timelines. I thought it was easy but I was wrong. I wonder if anyone has an idea to fix the code or can offer me an advanced wave-spawning system code. The first condition in my code works but the second one never executes. Here the...
  18. J

    Help me please!

    Help! I can't solve this problem I'm having where an enemy spawns another enemy when he is on screen but its not working! This is the code. Create Event spawn = false; Step Event /// Go after the player if !spawn { // Check to see if the player is near if collision_circle(x, y, 390...
  19. P

    GameMaker Limiting spawn rate of enemies?

    I'm creating a platform shooter in the trial version of GameMaker Studio 2 based off of HeartBeast's Platform Shooter series. I would like to create my own custom enemy spawning system, but I've run into a problem. Basically, I have a spawner object in my room that I've set two alarm events for...
  20. 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...
Top