• 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. V

    closest cell with path to player

    I am trying to find the nearest cell to unreachable cell with a possible path to player object so I can remove walls and make area reachable this is what I currently have function CheckForUnreachableAreas(x,y){ for (var i = 0; i < HCELLS; i++){ for (var j = 0; j < VCELLS; j++){...
  2. Hydrolox

    Making a grappling hook which extends and retracts at a certain speed, and direction.

    I want to make a grappling hook which extends out from the player at a certain speed and in a certain direction. If there is nothing in the path of the hook (the end of the hook is its own object) then it will simply retract at some speed when it reaches a certain distance. If you've ever seen...
  3. ericossiqueira

    Shaders Values of other positions

    I've been trying to do some things with shaders, I know that we can check the position of the current pixel that is being calculated, but, can we check other pixels to? Something like this: if (v_vPosition.x - 1.0 == v_vColour (1.0, 1.0, 1.0)){ //do stuff } Ignore my bad english.
  4. derboo

    Problem raycasting floor via shader

    Hi! I'm trying to make a little Raycaster based on the tutorial by Lode Vandevenne: https://lodev.org/cgtutor/raycasting2.html Working through the floor part, first I adapted it for GML drawing a pixel at a time, which works as intended but as one would expect is very slow. So now I'm trying...
  5. TheSpiritHero

    SOLVED A goomba like enemy

    I am trying to create a goomba like enemy for my personal project but i don't know how to make so that the enemy can be stomped if you jump on it and kill you if he touches you from the sides, can somebody help me with that?
  6. D

    (SOLVED) Need help with warping the player through rooms.

    So I know how to make the object that warps the player through the different rooms because I have a separate game that I was working on and it worked out fine (that game was transferred over from gm 1.4 to gm2), here's the code of that original object: obj_player_1.x = target_x; obj_player_1.y...
  7. Joe_La_Bricole

    Asign funtions in structs

    Hello ! I would like to declare a function in a script and then assign this funtion to a variable in a struct to call that function. Is that possible and if yes how ? Here is a little example : function message() { show_debug_message("this is a message"); } function struct_with_message()...
  8. Parsley

    Chargeable Throwing Item with fixed Distance

    Hey there, so i want the characters in my game to be able to throw something. When you are holding down a key, a value gets added to the speed and the distance of that throwable item each step. The problem i'm having is, that i want the item to only travel that "charged" distance and not...
  9. graphicsdump

    [SOLVED] GMS 2.3.3, How to spawn enemy instances and control each instance separately

    Hi all! I currently have enemy objects (small rockets) that are spawned using a time interval, and when an enemy object's x position matches the player's x position, I have it working where the enemy object's direction changes from 0 to 90, flying towards the player. The problem is, every...
  10. D

    SOLVED One of these If Statements is not like the other

    Hello. Ive exhausted every possible solution I can think of, yet I cannot solve this strange issue. Here is my code: // THREE RECTANGLE OBJECT SOLUTION (BROKEN) if(point_in_rectangle(playerobject.x, playerobject.y, x-dr, y-dr, x+dr, y+dr)){ //if(point_in_rectangle(playerobject.x...
  11. Parsley

    How to set a variable back when it leaves the collision_circle

    Hello there! This is my first post, yay!:) I'm working on a twin stick shooter and want my player object to be able to take cover behind other objects. This is what i got so far: var coverList = ds_list_create(); var cover = collision_circle_list(x, y - (sprite_height/2), coverRadius...
  12. Trandoxiana

    SOLVED Initialize 2D array

    Hi, so I am what I am trying to do is create a 2D array to keep track of collectibles. I have one collectible per level and my game is divided into 6 "worlds", with four levels each. I thought the best way to keep track of which collectibles were collected would be to create a 2D array with the...
  13. Geners

    SOLVED Parabolic path between two objects

    I'm looking to find a formula that describes a parabolic arc between two points with a specified vertex. I have a card object that I want to arrive in a specific location but I want it to arc there. I thought about just using the normal polynomial form and setting the x coordinates of the card...
  14. Y

    SOLVED create_instance_layer doubles the amount of objects

    Hey Gamemaker community, as the title says i struggle with the create_instance_layer, i made some kind of loop with a counter but as soon one runs trough is complete it doubles the amount of objects created by it which wasnt intended. Really tried to solve this on my own but i cant get my head...
  15. SophosMoros

    SOLVED Entering If Statement even when the If criteria is false

    I cannot for the life of me figure out why this if statement continues to execute even when it's false. I'm trying to reset a sprite animation when you first switch to it and for some reason it keeps entering the first if and holding the image index at 0 instead of it running one time when you...
  16. D

    (Solved) How to remove sprites/objects from room?

    I have a sprites/objects in a room that I cant double click or right click to remove it. Any advice?
  17. D

    (Solved) How to move X and Y position of sprite in Game Maker Studio 2?

    In the tutorial it told me to add the sprite to the object and then add an event called step. The GML code i used in the step event is x = x + 4; to move to the right but when i run the game it does not move at all. I'm not sure what you mean by drag and instance but i created an object and...
  18. Joe_La_Bricole

    SOLVED Create an SSL connection with GML

    Hello ! During the past few month (maybe a year) I've been learning about security over the internet. I'm now able to implement basic encryption through symetric keys : message (xor) key = encrypted And hash login : send salted and hashed logs over http and compare it with a hashed database...
  19. T

    GML Sprite not appearing issue

    I'm having an issue relating to my sprites / objects not appearing. My issue: I'm trying to create a new object, the code is all fine. I place it in the room but it doesn't appear in-game. Other existing objects appear perfectly fine. I had a slight hunch that none of my new objects would...
  20. kpenrose92

    buffer_get_surface took 5 arguments, now it's asking for only 3.

    Has anyone else had this issue? My own code, and according to the Manual, have buffer_get_surface( buffer, surface, mode, offset, modulo ) -5 arguments. After updating Gamemaker to 2.3.1 my game won't compile due to wrong number of arguments. In the description, it now has...
Top