coding

  1. N

    Animated "Loading" Image as GIF?

    Idk if anyone still uses GM8.1 but is there a way to make my loading image (for when the game starts up) as an animated GIF. I'm not sure if this needs to be coded in (if possible) because I tried it in global game settings and it was just the first image index.
  2. R

    GameMaker Trouble Implementing Dashing

    So I'm trying to implement a dash mechanic into my MegamanX-based game, and it doesn't work. Whenever I press l-shift, it doesn't do anything... I don't know what I'm doing wrong: Step Event: //dashing if (keyboard_check_pressed(vk_lshift) && image_xscale > 0 && alarm[0] == -1) {...
  3. 4

    Game Freezing

    I have a collecting game and if you have collected 11 of these things you can enter a portal to go to level 2. But, every time I have 11 things and go to the portal the game freezes. The code i have is extremely simple and is just...
  4. Luke Pierson

    Online Multiplayer Help Needed

    Hello! I've decided to try my hand at creating an rts capable of supporting 2 players. I have been following a tutorial on making an online server for a shooter, which I understand will turn out drastically different because my game will be able moving multiple units not controlling a single...
  5. J

    My player object is sinking, please help!

    I have a well functioning room and there's a portal. When I go to the portal with my player object I teleport to another room. In that room there is a different type of blocks on which player object should be able to jump and move on. BUT, the player is sinking. I assume there is a mistake in my...
  6. S

    With statement not working? (SOLVED)

    Hello everyone, I had this one issue for a while and can not figure out what the problem is. if txt == Answer { with (Targeted object) { destroy = true } } I insert this into a "Press Enter" event and nothing happens. I have tested to see if all the variables are the correct values and they...
  7. S

    Job Offer - Programmer Payed

    Hello my names Chris aka Swiffty im looking for someone to help me with a game i am working on. What i would need is a few small systems such as weapon switch,damage,ammo amounts and a simple AI. It will be payed as coding is work and good hard work deserves it. If you are interested then...
  8. R

    Legacy GM [SOLVED] Help, looking for easy character sprite switching in code

    Hello, I'm trying to figure out how I can quickly change sprites of the character without having to go through the code and change the names of the sprites. I am making character sheets and every time I get done with the sprites in game maker, i have to go through the move state codes and...
  9. H

    Legacy GM Making a The Legend of Zelda Tektite Enemy

    Hi! I'm trying to recreate the "Tektite" enemy from The Legend of Zelda in Game Maker Studio. I've tried for quite a while now but I can't really get it to work. Tektites are the spider-like enemies in Zelda, and they jump around randomly, and sometimes towards the player, often in groups...
  10. S

    GML Attack animation only plays first sprite image

    Whenever I press my attack key it only plays the first frame. It doesn't matter if i'm idle, moving, or in the air, it will only play the first image. It feels like i'm missing something very simple. Any help would be appreciated. -Code- //Attack Animations //Input key_melee =...
  11. D

    Windows helpme

    Hi there, I am 12 years old and this is my first game I am coding. Could you please help as this has taken me days! I am trying to make an RPG inventory and I am following HeartBeast's tutorial on youtube, but when I run the game this comes up...
  12. B

    GML Creating CPUs and AIs

    So I need to make a CPU for the opponents of my game. I need them to gravitate towards the center of the stage (which I guess I will use the x and y coordinates to tell the CPU to go towards???) and I need them to move on their own instead of having my movv set their controls kind of like an AI...
  13. M

    GameMaker Animations not working as expected[SOLVED]

    Hello Guys, First I want to say i'm just 2 months with gamemaker studio 2, so this is a noob question, hope you can help me: I'm doing the moving_script for the player: // Moving and collision if keyboard_check(vk_right) { hospeed=20; sprite_index=s_Running...
  14. T

    [SOLVED] Confusion with port on screen to screenshots.

    I've been stuck on something that seems super simple for the last few hours. I've been trying to get my game to play well on websites like YouTube without any black boxes in the corners. I have my view in room size set to 426x240 (One of YouTube's resolutions), and I have had the port on...
  15. D

    Legacy GM [SOLVED] Alarm Not Counting Down Properly

    I've set up an alarm variable that sets my variable, dashes, to 0 whenever it is equal to one (it also sets the variable isRecharging to false). You can see the effect of that here: if dashes < 1 { if dash { ++dashes; scr_player_dash(); scr_emit_dash_particles()...
  16. P

    Two Player Single Camera View request

    Hello guys I am working on a two player game that originally had splitscreen for the two players. I wanted to do parallax scrolling backgrounds but that seems to only work properly when it tracks a single play or camera object. So I decided that I wanted to ditch the split screen and probably...
  17. D

    Simple 3D Array Solution?

    I'm working on a game that randomly generates a map, with data stored inside of an array. Unfortunately, with the amount of data that I need to store for each location on the map, a 2D array simply doesn't hold enough information. Thus, I need a simple 3D array solution, but most of the examples...
  18. S

    GML Typewriter Text

    Hi, so I want to make typewriter text dialogue in Game Maker Studio like a lot of games do, specifically, I want to make it similiar to Undertale's text system. I know how to make typewriter text, but in Undertale, it types one letter at a time. When I make mine, it seems more "smooth" (not as a...
  19. S

    Legacy GM Need help figuring out how to make something work.

    At the moment, I'm making a little test game--a super basic side scroller-- just to learn the basics of coding. I have a room, a player character (obj_player) that can walk left and right, a chest that I can "open" (really just made it so that when I press a button the animation changes makes it...
  20. M

    3D Implementing Google Maps

    I was wondering how I would go about integrating Google Maps into a 3D FPS: it would get your GPS coordinates when opened, then project your surroundings (according to Google Maps), then allow you to move your character through Google Map's environment, colliding with buildings, able to access...
Top