solved

  1. derboo

    GMS 2.3+ 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...
  2. 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?
  3. D

    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...
  4. 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()...
  5. Parsley

    GMS 2.3+ 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...
  6. 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...
  7. DrScoop

    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...
  8. Parsley

    GMS 2.3+ 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...
  9. 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...
  10. 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...
  11. YourGrandpa

    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...
  12. 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...
  13. 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?
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. GonerBits

    Graphics Game Resolution - is 400 x 225 acceptable?

    Here's my situation. (Tldr at the end if you don't want to read) I'm making a pixel art game, and I've decided the amount of detail / sprite size I'd like. However, when making game resolutions, I've got a bit of a conundrum. Making the game 320x240 at a 4:3 ratio with 20x20 tiles provides a...
  19. J

    sprite is not where its suppose to be [fixed]

    hi,i am making this heart system and i've been following this tutorial... so far this is what i have done: var xoffset = 32; for (var i = 0; i < global.maxhp; i++) { draw_sprite(HeartEmpty,0,xstart+(xoffset * i),ystart) } for (var i = 0; i < global.hp; i++) {...
  20. F

    Shaders HLSL Question About Sampling and Float Summing

    Hi all, I've been messing around with HLSL and ran into some issues with sampling. Before I describe it all I already know how to get my test shader to do what I want it to do, but I'm extremely confused as to why it doesn't work when I try to do it a different way and would really like to know...
Top