gms2

  1. M

    Networking?

    I have been a little curious about Networking in GMS2. I have watched tons of tutorials on it, but I didn't quite get the picture... and when I tried to do networking, the entire game just crashed. so umm... and explanation on networking would really be helpful since I have no idea what I'm...
  2. conman06

    Doors to next level not working

    So, I'm working on a platformer. Each level has a door that leads to another room, and sometimes there are locked doors. The problem I'm confused about is why the door won't take me to the next room after the door has been unlocked. There is the object for a locked door (oDoorLocked), the key...
  3. Mookal

    SOLVED iOS Export: Connection Successful, No Devices Found

    I'm developing my game on my Windows PC, and I have a Mac set up with Xcode for testing the iOS export. I hadn't tested in a while so I tried to send a build to the Mac, but I kept getting the "FAILED: Run Program Complete" error. I then tried to search for iOS devices connected to the Mac...
  4. KyleRansford

    GameMaker How to "Reserve" a Controller Slot for Player 1?

    I have my game setup where if there are more than 1 player, they can each use a controller. But, how would I "reserve" a controller slot for player 1? Since the way I currently have it working is, that in 1 player mode, the 1st player can use either the keyboard OR a controller. But, because of...
  5. R

    Source control between Mac and PC

    So I've been working on a GameMaker 2 project for a while with a friend of mine. We both have PCs and use source control/Git to push/pull our changes back and forth. I've been thinking about getting a Mac. Does anyone know if it'd be possible to push/pull changes back and forth between a Mac and...
  6. OneIsNeverLate

    GameMaker Physics boxes unwanted corner collision

    Hello GMC, I have a physics question, but first, a screenshot: My game is simple in nature, a platformer using the physics engine: my character can move and jump. When my character is touching the wall and jumping, everything works fine. But when I jump and in this case hold left to move left...
  7. William Garrison

    GameMaker Sound playing every step. (need to stop that)

    Okay so simple enough I want a hover sound to play when the characters HSP (horizontal speed) is > 0. So if this is the case and its HSP > 0 then I set the hovering var to be true. Otherwise its false. Once hovering is true I do the following (hovering code included). PLAYER - CREATE hovering...
  8. Kiwi

    GameMaker How do I make an object move in a semicircle?

    Does anyone know the formula to make an object move in a arc, like this: I'm trying to make a walk cycle where I've got two boots, and the code on them gets triggered depending on how far the body's x pos is from the boot's x pos. I attempted to do it with states and IF statements, but the...
  9. conman06

    Rooms not working

    I'm trying to program my game to go to the next room after the door animation plays, which is activated when the player presses up arrow. I don't understand why it isn't working.
  10. MartinK12

    Question - IDE Is there option to color differentiate brackets in code or some add on that does it like MS Excel has?

    I’m looking for a way to color differentiate brackets like MS Excel does it bcs very often I got confuse with them ;) And yes I have matching brackets highlighting ON but looks like it's not enough for me ;)
  11. xDGameStudios

    GML mp_grid what happens under-the-hood?

    I wanted to ask YYG team or someone that knows this, what implementation is used by the mp grid pathfinding under the hood? 1) A* + normal grid? 2) A* + QuadTree? Is it even A*? I've been looking at some algorithms and wanted to know how can pathfinding in GMS2 can be made better (more...
  12. conman06

    GameMaker Global Variable not working??

    Ok, so I'm making a game in which you click the trees, then they give you wood. I need to make an object to show how much wood the player has. In the tree object, I have these scripts for the Global Variable "Wood": global.Wood = 0; //When Tree clicked, add +1 wood and disappear. if...
  13. conman06

    Changing Room when object clicked?

    I'm trying to make the room change when an object is clicked. Note: I am new to the software. If you could explain it I would appreciate it.
  14. William Garrison

    GameMaker Particle System using Heros xscale

    Okay, I feel like this should be very straight forward. What rudimentary nugget of knowledge am I missing here? Inside of my Particle Object I have this bit of code... part_type_scale (partType_hero, oHero.image_xscale, 1); I have tried setting a variable inside the particle object like...
  15. C

    Help with scribble

    Hello everyone. Im new here. Im doing a developement on GMS2 and i found out about scribble. i installed great, its great, it does some neat things, but i need some help. im trying to apply an effect, when using AUTOTYPE, i want to have it so that if in the AUTOTYPE it finds a special string...
  16. Wendell

    Problem with surface drawing for lighting effect

    Hello. So, I have the follwing code on my light_controller object: if surface_exists(surf) { var cw = camera_get_view_width(view_camera[0]); var ch = camera_get_view_height(view_camera[0]); var cx = camera_get_view_x(view_camera[0]); var cy = camera_get_view_y(view_camera[0])...
  17. M

    Chain objects pass variable states

    Hi, I'm going to try my best at how to explain this so bear with me. Imagine a chain made up of individual links hanging from the ceiling. Each link is a different object hanging in the air because they are all attached to each other. What I am struggling with is if you remove a link in the...
  18. O

    check_object_in_viewport()

    I want to be able to check whether or not the player is able to see an npc for a check to speak with them in a king's quest style game. if(object_in_viewport(object_id,viewsize_x,viewsize_y,player_pos) = true) { interactable = true } (this allows the code to continue with actions beyond this...
  19. josyanf1

    GameMaker [SOLVED] Discover 'direction' with hspeed and vspeed positions

    Hello! I am trying to discover the direction variable having the hspeed and vspeed positions. Since if you use hspeed or vspeed the direction variable gives 0. I'm a little lost, can someone help me? :S Thanks in advance ^^
  20. TomOmNom

    Tag system in Gms2

    So, for my game I need a tag system. For example, I need be able to run a function that will check for every object with a tag. I can’t figure out how to do this, but I can’t use parents to have objects like these: breakable object A collidable object A breakable AND collidable object Any...
Top