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

random

  1. X

    GML [Solved] Random room position isn't really random and second client for the first spawns at 0,0

    Working on a top-down multiplayer game, with a server-client connection, blah, blah, you probably know the jazz by know... From the previous thread: "Made some bit of edits, the second player for the first player spawns at the position 0, 0... even though I've set the clients to spawn at a...
  2. C

    Choosing a random animation

    I'd like to implement multiple idle animation for my player character, i'm just wondering what would be the best way to go around that so they appear randomly if the player is just standing around
  3. U

    How to exclude a value from random sample range

    image_index = (random(image_number)); I am making a quiz game and this is the code i am using to generate a random question. The question is one sprite with 10 different sub-images which are different questions. However once the question (sub-image) has been answered i want to exclude it from...
  4. V

    Legacy GM Random movement problem

    Hi GM:S community, I am making my very first "test/learning" game and I already have an idea of what the game should play like, but I can't make enemies move to random directions when i press two keys at the same time. You see, I used this code (which i found online): if (keyboard_check(vk_up)...
  5. M

    Legacy GM Problem with Jumpto random

    I clamped the player character between the edges of the screen, and while it works well, part of the moveset is teleporting, so I used the jump to random action, and there are times in which it makes the player go out of bounds, resulting in the game crashing, is it because of the clamp? Just...
  6. G

    Legacy GM [SOLVED] HELP please Code - Random objects

    I have found it difficult to find the respective codes for the actions of the DnD. I've been working with DnD lately. But I'd like to know. I would like to know the code, to create objects randomly but that are in the same position, And the code for random objects around the room. And I would...
  7. RyanC

    Legacy GM Question about random seeds?

    Hi All, My game keeps loosing surfaces when the application is minimized on Android, and whenever the app looses focus. Normally I would just write: if ! surface exists(surf) then re-create the surface, however this is not really as easy as it sounds because these surfaces already have floor...
  8. M

    GameMaker Max Value which has subordinate random values.[Solved]

    Hello Guys ;), I want to make a program code who allows to make a maximum value for subordinate random values. I don't know how to explain it so i have here a example. The subordinate random values should result 10 at least. (10 is the max value).(10 should be changeable). Thx for the respond...
  9. M

    GML [SOLVED] Image_Angle Issue

    Ok, so my problem is with the image angle variable. I'm creating a dungeon map generator that consists of a bunch of objects with random image indexes, and I'm trying to give them a random rotation (0, 90, 180, 270) every time i generate a new map. No errors show and the program runs fine, but...
  10. D

    Generating random characters

    I've invested around 200 hours into gamemaker but I'm still getting the hang of it. I want to generate multiple characters with random stats who will be present throughout the game and I have no idea where to start. For example: In a pokemon game, a pokemon with random(ish) stats appears during...
  11. B

    Why won't this instane create?

    So I've been messing around with random generation. And therefore I need a player spawning system that ensures the player is inside map boundaries.This is what I came up with. The game doesn't crash but the player is never created. Help?! if (instance_exists(obj_floor)) {...
  12. S

    Creating "Blueprint" for rooms

    I'm working on a game, where the level gets randomly generated out of little room tpyes like cooridors, normal rooms, staircases, etc. These are all in one gamemaker room. My level generation works so far, but at the moment I just use one sprite for each room, just to see if the level...
  13. N

    GML [SOLVED] ds_grid Collision Question(s)

    So at the suggestion of a friendly user on this forum i converted my randomly generated sandbox game to utilize ds_grid collisions to improve it's dismal performance; however, using the same sizes (room and block) the performance dives from the original (instance) system: 58~ fps to a...
  14. John Andrews

    Opinion HeYYo! gimme some game ideas, what do you like in games?, I wanna make something...

    I am ready to do anything, but no ideas come to my mind! PLEASE, tell me what makes a game be FUNNY and Enjoyable, what would you like in a new gamE! :D
  15. S

    Random level generation

    I'm trying to create a level generation, where my room is split up into mulitple cells (for example a 6x6 grid). Every cell represent a room, that can have an exit in all four directions (up,down,left,right). First of all I want to create a garuanteed way through the level. For this I pick a...
  16. S

    [Unresolved]Enemy Tile Collison - with additional random movement -

    I'm trying to get my enemy sprite/objects to not fall off (for certain enemies) or to actually fall off (certain other enemies) the top of the tiles in my 2d Platformer... also when hitting a collision tile object (box's ect...) then just turn around reversing direction -- ALL WHILE KEEPING MY...
  17. M

    Room Randomizer Not Working

    Hi! I'm working on a project in GameMaker Studio, and I need to go to a random room. What I have right now is: global.nroom = random_range(1, 10); room_goto(global.nroom); When this is run, it displays an error message saying "Room __ was not found" even though I have created rooms with the...
  18. Z

    Legacy GM Q: Set Random level generation with rooms?

    Hello, not long ago there was a video (of pixelated pope if i remember correctly) in which he talks abouthow to make a random generation system with set rooms, from which you select one at random, copy its contents, and create them in the current room. does any1 know that video or what...
  19. nnn1czech

    GameMaker Memory: random drawing cards

    Nice day, (I do not know how much English - I translate in the translate.) edit: Are there any codes that operate in the Windows version, but in the version for HTML not? I ask because I found another tutorial on pexeso in GMS 1. In Windows version works correctly. But in HTML showing wrong...
  20. W

    Legacy GM [SOLVED] Random Background Blend

    backgroundcolor[0] = background_blend[0] = c_white; backgroundcolor[1] = background_blend[0] = c_red; backgroundcolor[2] = background_blend[0] = c_orange; backgroundcolor[3] = background_blend[0] = c_yellow; backgroundcolor[4] = background_blend[0] = c_green; backgroundcolor[5] =...
Top