random spawn

  1. Wicked

    GML Randomly generating chest spawns with a randomly generated level

    Hi, i've posted before about needing help with this for another problem, but here I am again. I've made some progress with a bunch of things but am currently stumped with trying to place down chests in the grid of the level. It is based off of this tutorial, and this is the code that came with...
  2. F

    Randomizing Spawn throughout the game [SOLVED]

    Hello! For my game I'd like to spawn cars in randomized places (either a or b), randomized gaps between the spawns and then also randomized speed (altough I havent written the code for that yet) However, I encountered the issue that it is random at the start of the game but then it continues to...
  3. K

    Random spawned coin won't stop spawning in the wall

    Hi Y'all! Having an issue getting my random spawning coin to stay away from the walls when it spawns. The below code is supposed to spawn ten coins only if they are not near anything. Would appreciate any help you can give. Thanks is advance! randomize(); {repeat (10) { var ranx =...
  4. M

    Randomness in timelines

    So I've been making some kind of randomized-Bullet-Hell type of game, and not too complex of course since it is my first time using code and GameMaker. I'm using a timeline to create all of the bullets and the instances, which work well, except for one detail: No many times how I restart my...
  5. I

    Drag And Drop Spawning at set random positions

    Hello GameMaker people! I've got an idea for a 2D memory match game and I'd like to spawn the tiles (objects) into a given level at random set positions in the grid I've got set up on the background, but I can't quite seem to get it to work. Eventually, I'd like to have them all spawn in random...
  6. 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...
  7. O

    Legacy GM Spawn random

    In the game when I hit some object so it replaces random position properly. This is the code I used: ================================================================= spawn_id= instance_create(0,0,obj_hero); do { spawn_id.x = random(room_width); spawn_id.y =...
  8. Z

    Special random number generator for replays

    Hello. I saw that on PSX games Driver 1 and Driver 2, there's always the same randomly generated set of cars that spawn as you drive if you press the exact same buttons at the exact same time as before. I think that the buttons actually control the random generator's seed dynamically as the...
  9. C

    Spawning Randomly

    So this code worked for me but after an update it started messing up. I want to randomly spawn an object with in the room but it spawns in the same pattern every time. here is the code: // Spawn pie (random(x),random(y),obj_enemy instance_create(random(608),random(-32),obj_enemy) that's my code...
Top