• 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!

programming

  1. W

    Basic Camera

    Hi. I managed to make a basic camera function in my game and I'm very stuck right now because I wanted the camera to follow mouse and the player at the same time (The camera would move with the mouse but the player would still be clearly visible on screen) Please help.
  2. F

    GML Time based if statements

    Hello, is there a way to make a time based if statement. I have searched for a while but havent found anything. What I want: if (maxSpeed for 2 seconds) { bla bla bla } Any help is very much appreciated
  3. joshua:)

    GameMaker help please

    ok so im making a game were if you go through a green block a section on a bar turns green. i'm kinda stumped on how to do it though. heres what my game looks like now m very new to programming so the answer might be very easy :)
  4. joshua:)

    GameMaker Error : Missing or corrupt GameMaker build tools - 0x4F030002

    i have been getting this error every time i run my program. i have tried looking up how to fix it but nothing has helped how would i fix this? this error message keeps showing up every time i run my game Error : Missing or corrupt GameMaker build tools - 0x4F030002 does anyone know how to...
  5. joshua:)

    GameMaker random generating blocks

    hi so im making a game where a raindrop is falling through the sky and he has to move out of the way of random block type things but i dont know how i would do that (i have tried looking up tutorials but there was nothing) i am very new to programming so this could be very easy :)
  6. realCGG

    How to get 4 direction input from a gamepad joystick?

    For my project, I have this for WASD movement up = keyboard_check(ord("W")) down = keyboard_check(ord("S")) left = keyboard_check(ord("A")) right = keyboard_check(ord("D")) How can I find the up down left and right with a joystick? I could use gp_pad(x) but I really want the player to be able...
  7. S

    GameMaker Chraacter freezes on the air until it finishes the animation when attacking

    When I press the attack key, my character goes from the movement state to the attack state, However, in the attack state, the character has to finish the animation ebfore it ca move again. This means that I can't attack while moving, and the character freezes when I attack in air until the...
  8. A

    UI and IDE question

    I looked this up but couldn't find any information so: When making ui elements, like buttons, i make them as an object that can be re-used to make every button (i guess most people do this), so in the editor i place the obj_button and change a variable on each instance, lets say text variable...
  9. P

    Having issues with button configuration.

    I am working on an options menu that has button configuration. This allows the player to remap keys to the controls for the game. The idea is that the new key binding is written to a .ini file and reassign the action to the new key. Everything seems to be fine, but it would not reassign the...
  10. H

    sprite_set_offset to follow the mouse position

    Hello, I try to make an inventory window, the plan is when the player clicks on the inventory window, get the mouse position within the inventory, and the inventory follows the mouse. So if i click on the middle of the inventory, the middle part will be the x, y origin, if i click on the top...
  11. W

    Developer talking to a specific player in his game.

    Hi. So I've been wondering, how is it possible for a developer to talk to a specific player directly? They make it seem so easy but I bet a lot of effort went into that function alone. For example the devs of "Blackout Club" or "Welcome to The Game" implemented a whole feature just to mess with...
  12. Plubu

    SOLVED Game's window when it starts it's at upper left of the screen

    Hello everyone, I have a game when it runs, it starts at the upper left of my windows screen, why's that? After the main menu however, it goes and fixes itself. //Room start //Camera Setup window_center(); global.CameraX = 0; global.CameraY = 0; target = Player_Object; CameraWidth = 960...
  13. joshua:)

    GameMaker i need help again

    i want to add a rolling animation to my player object. i figured out how to add it and make it work, i just don't know how to give it gravity. it just a floating head now. there is probably a very easy solution but i only just started programming so im still figuring things out :)
  14. ShiftyIdk

    GML Wait function for object creation

    Hello, so i'm kinda new to this and I was wondering how you would create a wait between object creation, for example, when an enemy gets close to a player, it shoots bullets but it just spams them. Is there any way to create like a 5 second wait between each bullet?
  15. T

    How do I create another (different) sequence after one ends...?

    im programming a cutscene and i want to spawn in another sequence once the first one ends...how do i go about doing that?
  16. LDinos

    GML How do I change the restitution of an object?

    Hello guys! I have made a simple physics objects and I want to change the restitution in code, but it requires a fixture which I never made since I haven't put any physics code yet. How can I get the instance fixture, or, how can I change the restitution without a fixture?
  17. I

    Bullet isn't showing for Space Rocks

    Hello! This is my first post on the forum, so pardon me if I have done anything wrong. I'm looking at FriendlyCosmonaut's tutorials on Space Rocks and I am on the second enemy video. I came across a weird issue where when pressing space the bullet simply doesn't appear at all. I used a "fix"...
  18. M

    GML Enemy AI?

    How would I go about making an enemy AI that has pathfinding (uses doors, detects the player, makes a path to the player etc) and how could I make the enemy only shoot when they're in the same vicinity of the player. The AI I have currently just shoots even with walls in between the player and...
  19. M

    GML Cooldown Issue

    I'm trying to add a cooldown to the player's shooting mechanism. I can't seem to figure it out, I've tried alarms, number values, etc and nothing works. Please help! It is in a Global Left Pressed event Code: with(instance_create_layer(x,y,layer,oBullet)) { direction =...
  20. D

    Why does GameMaker think that _totalFrames is a global variable?

    I was watching this tutorial but realized GameMaker was giving me an error with the local variables. This is my code: function PlayerAnimateSprite(){ var _cardinalDirection = round(direction/90); var _totalFrames = sprite_get_number(sprite_index) / 4; image_index = localFrame +...
Top