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

repeat

  1. Jasuke

    code creates everything 2 times

    so in my step event i check if the condition is met, then i create 4 objects, but for some reason it creates 10? i dont really get why //step var tileLayer = layer_get_id("Tile_layer"); if (Slime_blue.x == x && Slime_blue.y == y) { if(place_empty_on_layer( x+16 ,y + 16,tileLayer)== true...
  2. D

    GML keyboard held key repeating for keys not used in keyboard_string

    keyboard_string works well for normal OS key repeating. Hold a key like "A" and it will place an A, then after a second it will rapidly repeat "A". However, for keys like vk_left and vk_right, these don't affect keyboard_string and don't react to the OS's normal key repeat. I'm working on a...
  3. kamiyasi

    Is there an asynchronous event for when the app on mobile is minimized?

    I'm testing my project on my Android tablet, and I noticed that if I minimize the project to go to the home screen, then pull it back up again, then gpu_set_texrepeat gets set to false, or at least it appears to. I have 3D elements drawn using the buffer that use textures outside of the 0-1 UV...
  4. FoxyOfJungle

    How can I not repeat a random number even using randomize()?

    Hi! My goal is to generate a final number in which it cannot be repeated, within a range of numbers from 1 to 5. 1 - This is what happening: Notice that MEMORY_GAME and SWIPE_CARD were repeated in a very "close" way, when in fact it should give way to other friends that have not been added...
  5. A

    SOLVED Is there a function relating to "Repeat Until (x,y,z)"?

    To give some back ground into what I am trying to do, I want to make it where two circles follow mouse/WASD inputs until they collide with a certain object. I was wondering if there is any functions relating to this
  6. B

    GameMaker Search for ds_map value

    Hello :) , I have a question over a code I am breaking my head over for several days now! I have this line of code where you get different rewards depending on the number. For example if you win coins, you get +100 coins etc. In this case you win a new football. I have a ds_map that stores...
  7. B

    GameMaker How to create an algorithm

    Hello dear community :) I really need help with this peace of code. I have a Level room where there is an Object that checks, when created, how much stars (0-3) each level has saved on the ini. Then it changes the image_index of each level button to match the amout of stars. 3 stars are yellow...
  8. Architheutis

    (Solved!) How to start an animated sprite from a random number?

    Hi Folks, I try to make a sprite-animation, starting from a random number. But I wasn´t successful. I have a walking zombie, spawning in a level up to 6 instances, maximum. The sprite has 32 images. Now I just want for each added zombie a new randomized number, where the its animation has to...
  9. K

    Legacy GM console code running multiple times

    For some time now, I've been trying to make a tiny game with an easy concept. However, for some reason, I have been unable to make the program work. The main idea for this game is that you have a raster of objects and when you press one of these objects, it gets infected. This infected object...
  10. FrostyCat

    GML What's the Difference: Loop Structures vs. Step Checks and Alarms

    What's the Difference: Loop Structures vs. Step Checks and Alarms GM Version: GMS 2.x, GMS 1.x Target Platform: All Download: N/A Links: N/A Summary: An explanation of when to use loops and when not to, plus a brief overview of non-blocking repetition Summary Many recent novices needlessly...
  11. S

    Animation repeating

    Hi, Im making a game and just got done with making the art and some animations for my main character. Everythings going pretty well, however, there's a couple of bugs I don't know how to indentify the problem/fix. Im not really sure how to descibe it so I made a video: (darn, 5-post limit, I...
  12. J

    How to Prompt an action only once?

    Hi! I am creating a game where I have enemies wandering around until they come within "sight" (variable) of the player, then they will go after the player until the players goes outside their "sight". Everytime they see the player, I want them to flash, so the player knows they enemy has seen...
  13. A

    Legacy GM Instance Create at end of Repeat

    So I've been following a Youtuber's tutorials on random generation (Name can be discussed if needed) and finished it up, but now I want to add a bit to a line of code. //Create level using 1000 steps; repeat(500) { //Place floor tile at controller position grid[# cx, cy] = FLOOR...
  14. M

    Repeat an action by a set of time (drag'n drop)

    Hi nice to meet you all. I just purchased this software and i really suck at programming so i'm using more drag and drop functions to create my first game, but i have a question and i hope you guys can help me. I need to create an event that spawn a certain object at every 2 seconds and i'm...
  15. R

    Repeat Function Not Working As Intended

    The commented code given below is part of a program that should make a single-lane road. It creates a grid and has a controller that moves through the grid, marking cells to be part of the road. As you can see in the output here: http://imgur.com/eJO0Tvf although it moves in a general 'up'...
Top