1. 1tsmey0sh1

    GMS 2.3+ Item falls after breaking an object

    So I have an object for example a tree i want it to drop a fruit after breaking it but i dont want every single tree to drop a fruit i want it to have a 50% chance of dropping a fruit and a 50% chance of it not dropping a fruit. But idk how to code this and i cant find a tutorial showing me how...
  2. 1tsmey0sh1

    GMS 2.3+ Depth not workihng properly after breaking an object

    So this is the code //depth with (all) { depth = -bbox_bottom; // held item if (_playerexists && _helditem == id) { depth -= 30; } } hope someone can help me (in the pics 1 2 and 5 you can see the depth working properly on the pics 3 and 4 you can see the depth not...
  3. 1tsmey0sh1

    Windows After I break something my camera stops working and I cant break other stuff

    So I followed this tutorial: and it seems that i cant break anything after breaking something and my camera stops following the player idk what i did wrong i checked the tutorial again and it seemed like i did everything correctly
  4. A

    object is unown

    ___________________________________________ ############################################################################################ ERROR in action number 1 of Create Event for object <undefined>: Variable <unknown_object>.sprite_index(25, -2147483648) not set before reading it. at...
  5. Baconleaf

    Drag And Drop Beginner Stuff- Spawning Error?

    I've been following the DnD tutorial for asteroids. Everything works besides an odd issue when The ship collides with a rock. If I set to 1 life, the gameover screen runs fine, but if I set to 3 the game runs fine until I theoretically should have 2 lives. I went on with the tutorials until the...
  6. G

    Windows Problem when i'm trying to create a exe.

    Good evening I have a problem with the creation of an executable. I am a beginner and I understand nothing at all about this error. I tried with a new project and everything works fine, but with this one nothing to do. If anyone can explain to me how to solve my problem thank you. "cmd" /c...
  7. L

    Windows help for a beginner

    I'm starting to learn to make games now and I'm having this problem, I can't solve it for anything could you help me please? ps: sorry if i made the post in the wrong place and sorry the google translator.:)
  8. E

    GMS 2.3+ Same object, different messages

    Hello, in the game I'm creating, the player goes in a bedroom where a lot of papers are pinned on the wall, and everyone has a different message written on it. In order to do that, I only created 4 objects, for the 4 sprites (4 different types of papers pinned, to have some variation), but i...
  9. Purple_Shy_Guy

    SOLVED I need to make the character blink after taking damage using a shader

    Hello everyone, I'm working on my first project and I need some help. I wanted to make the character blink (in white) during his invincibility time after taking damage. I created a shader for it and it kinda works. The only problem is that the character becomes white during the whole...
  10. face

    GML Programming basics in 20 minutes. (cheat sheet)

    GM Version: Studio 2.3 Target Platform: Windows Download: see code below Links: n/a Summary: In this tread I will teach you the basics of programing with GML. Attention: Useful information will be available here but you will need to use this regularly to get decent at it. What not to expect...
  11. Purple_Shy_Guy

    I wanna do a megaman like knockback in my top down game

    This is my first project, so I'm having a bad time trying to figure out how to do it. My knockback wasn't working somedays ago, and the community helped me, so it's working now. But I want to make a knockback just like the one in megaman, because I think it's really dynamic. This is the code I'm...
  12. Purple_Shy_Guy

    SOLVED My Character's knockback is only half working and I don't know how to fix it.

    I'm trying to program a knockback for when the caracther is hit by an enemy, but it's olny half working. if (place_meeting(x+sign(move_speed), y, Obj_Slug)) { x-=move_speed*15; } if (place_meeting(x-sign(move_speed), y, Obj_Slug)) { x+=move_speed*15; } if (place_meeting(x...
  13. kapaqw

    Instance Collision

    Is there anyway to find the specific instance that collided with a object and put it in a variable? Would you use instance_find?
  14. netscaped

    Camera panning not working

    Hey all, I'm very, very new to gml, but what I tried to do here was to slowly move my camera to the desired coordinates (It's a very uh, pixelated game, so 1px per loop wouldn't be too slow), but it doesn't seem to do anything except freezing the game up. I've tinkered with it for a while now...
  15. Null-Z

    Tips for a 2D artist starting 3D modeling.

    while I wait for the final parts to upgrade my computer, I wanted to gather some tips to help me swiftly understand how to model in 3D. what advise do you have? anything you wish you knew when you began 3D modeling? what tutorials do you you suggest work the best? advise is appreciated!
  16. FiftyFive

    SOLVED I'm new in GameMaker studio, what should I do to improve myself?

    I'm new in GameMaker studio, what should I do to improve myself? I bought training from Udemy but i learned the basics (I really really want to make a game like "Katana Zero") : - )
  17. FoufaDjo

    SOLVED collision,friction and accel problems

    i followed a tuto on yt about movement and the dont use the speed var so i cant use the friction function can someone help me: hspd = (rkey-lkey); vspd = (dkey-ukey); if (hspd != 0 or vspd != 0){ dir = point_direction(0,0,hspd,vspd); hmove = lengthdir_x(spd,dir)...
  18. Michael Franklin

    Player not moving

    My character does not move when I run the program. I only have a step event: //input left = keyboard_check(ord("A")); right = keyboard_check(ord("D")); jump = keyboard_check_pressed(vk_space); //Movement var move = right - left; hsp = move * walksp; vsp = vsp + grv; //Horrizontal collision...
  19. D

    Beginner Coding

    I'm new at GML but I enjoy the way coding makes you think, so the first picture the highlighted line works fine. All I want is to right click to destroy crops, I made it so I left click to plant crops and it works out fine. I thought all I had to do was the opposite but I got stuck. I just need...
  20. O

    Is there an code arcive where you can download complete examples to work from?

    This would really help beginners like me