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

solved

  1. Bentley

    SOLVED: Tetris: collision checking when a piece rotates or slides.

    I've only played Tetris a few times, so I'm probably wrong about how the game works. As I understand it, a piece can only slide / rotate if two conditions are met: 1. The piece stays inside the Matrix (fun to use that word :) 2. The piece doesn't enter another piece. I'm having trouble...
  2. RujiK

    [SOLVED] Replace a color with a texture (Pics)

    I have this really simple shader that swaps out really red stuff. //Fragment varying vec2 v_vTexcoord; varying vec4 v_vColour; void main() { vec4 col = v_vColour * texture2D( gm_BaseTexture, v_vTexcoord ); if (col.r >= 0.98 && col.g < 0.2) { col.r = 0.0; col.g = 0.0...
  3. Bentley

    SOLVED: Storing multiple values in 1 ds grid position

    Is there an easier way to store multiple values in one grid position than something like this: //Pseudocode var grid_width = 10; var grid_height = 10; cell_type = ds_grid_create(grid_width, grid_height); //ds_grid of the cell's type cell_h = ds_grid_create(grid_width, grid_height); //ds_grid...
  4. B

    Legacy GM [SOLVED] What if the player was the Slope?

    So I did a nifty tutorial by Shaun Spalding that gave me slope movement, then I revamped it so that jumping affects only the obj_moved and left and right movement only affect the obj_player and ground blocks. I threw in an obj_solid and made it the parent to the block and player. No code in...
  5. Bentley

    SOLVED: Snake remake: a "swallow" effect one body at a time

    SOLVED: I'm working on a Snake clone and I want to get a "swallow" effect. What I mean by that is every time a rat is eaten, the scale of the first snake body increases, once that scale normalizes, the scale of the second body increases, and so forth to the last body. I'm using a ds_list to...
  6. Bentley

    SOLVED: Why doesn't this code prevent reverse direction?

    I'm trying to make it so the player can't go backwards. Ex: if he's moving east, he can't go west. switch (keyboard_key) { case vk_right: target_dir = 0; break; case vk_left: target_dir = 180; break; case vk_up: target_dir = 90; break; case vk_down: target_dir = 270; break; }...
  7. Bentley

    SOLVED: Why do I create two bomb instances?

    Hello, 1 bomb is supposed to be created when space is pressed. For some reason, two bombs are created. I know this is a rookie problem. I've looked for the source of the bug and I can't find it. The game is a bomberman clone (a terrible one). The movement is grid based. Because a bomb can be...
  8. H

    set an instance's sprite at random

    Hi, When my 'human' instance is created i want it to choose, at random, from 3 different human Idle animation. right now, in the create event of the instance, it executes: sprite_index = choose(m1Idle, m2Idle,m3Idle); //(m1Idle,M2Idle.... are the names of my sprites) but when the game...
  9. C

    Legacy GM How to temporarily pause alarm?

    Basically I have enemies spawning randomly using an alarm. Every 100 points you get the game gets a slight increase in difficulty. At 500 points a boss spawns and you have to kill the boss, but after that nothing else spawns. I think this is because setting it to -1 actually turns off the alarm...
  10. B

    Legacy GM [SOLVED] Endless Runner with Slopes help

    So I requested help on this old project back in the original GM forum and no help but I have come back to it trying new things. Off and on for a few years I have been trying to make a random generated endless runner using slopes. I can get the slopes to work fine on their own in many different...
  11. A

    [SOLVED]Draw an arrow without using draw_arrow function...

    Hello everyone, I'd love to draw a triangle at the end of the drawn line (code below) so it follows mouse position (as the oLine does) without changing its size and shape(see picture). I cant use draw_arrow or draw_sprite function because it doesnt fit my needs. Object oControl: Mouse Event...
  12. P

    Legacy GM lock on target

    I want the object to shoot the enemy until it gets out of range or collision condition is true then try to choose a new target. I have defined "var enemy=obj_enemy" in create event the code below is in step event. it doesn't make any error but the object just does nothing please correct it if...
  13. A

    [SOLVED]Draw dotted or dashed line?

    Hi all, I made this simple code for drawing normal lines. Now I want to change it into drawing dashed or dotted lines. How can I modify this to make it draw dotted or dashed lines? Create Event: locked = false // so I can draw more than one Line last_x = mouse_x last_y = mouse_y Mouse Event...
  14. Bentley

    SOLVED: Minesweeper Clone Attempt. Getting all the 0 tiles to flip

    I've been trying to remake Minesweeper and I've come across a problem. When you click on a 0 tile (a tile not touching any bombs) you can sometimes turn over a large piece of the board. In trying to replicate that, I thought to check in 8 directions from where the player clicked. I soon...
  15. Bentley

    for loop and instance_exists question

    I was just wondering the following: if I put: place_meeting(x + i, y, obj_wall) as the expression in my for loop, is it then unnecessary to check if that wall exists? For example, let's say I want to blow up every wall to my right: Is this OK? for (var i = 1; place_meeting(x + (i * 32), y...
  16. Bentley

    Rotate image_angle but keep instance/sprite mask aligned to grid?

    Hello. I have an object that is 32x32. Its collision mask is set to "full image". In the object's step event I coded: image_angle += 1; //Spin The problem with that line of code is that when the instance spins, it no longer lines up with the grid. I assume that the rotation causes part of the...
  17. A

    Legacy GM [SOLVED]How to draw a (curved) line with mouse?

    Hi everyone, I'm trying to figure out how to draw a line using your mouse leaving no gaps between points? I have 2 objects oControl and oPoint. And I use only this simple code: oControl_Step_event: if mouse_check_button(mb_left) { instance_create(mouse_x,mouse_y,oPoint) } If I move mouse...
  18. S

    GameMaker [SOLVED] - Sprite flickering when zoom out

    Hello, In my project, i have a gun turrel throwing fireball. But when i zoom out, these fireball seems "flicker" or "sparkle". My fireball have only one sprite. I made a gif in order to be more clear : Another gif when i have no zoom. - My laptop have a resolution of 1366x768 (16/9)...
  19. Bentley

    A better way to get a random letter over choose("A" through "E")

    Hello. I want to make a typing game and I have a quick question. 1. I'm going to use random letters to make a string. These are my first thoughts on how to do it: letter_total = 10; for (var i = 0; i < letter_total; i += 1) { letter[i] = choose("A", "B", "C"); // ...all the way to "E" }...
  20. D

    Windows [SOLVED] Fullscreen scaling

    Hi! I've been doing some research but couldn't find anything that didn't involve me having to remake the game, if you know of any such resource please point me in that direction! So the problem is that I have a 640x640 game I want to upscale to fullscreen. I want the space outside of the room...
Top