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

progamming problem

  1. L

    GML Visual animation that plays in a loop

    hello everyone I am trying to make an object play one animation or another according to the variable I give it, but it plays in a loop and I would like it to stop playing when the animation is finished. That's what I've done. any advice?
  2. IronGear

    GameMaker plz help with....Fixed Directional Shooting(Visual Or Code)

    Hey all, i'm tryin'a make a game but i've been struggling with shooting an object in a fixed direction, all I need is a simple line of code or instructions that makes a character shoot in all fixed axis. Example: (Up,Down,Left,Right) I would deeply appreciate the advice thx.
  3. J

    Game freezes with this playAnimation function. (first post here)

    How should I approach this?It's not finished but why it freezes my game?
  4. M

    GameMaker (SOLDVED) how i convert string to float?

    Hey guys, this is my ptoblerm: ___________________________________________ ############################################################################################ ERROR in action number 1 of Step Event0 for object obj_player: unable to convert string "" to float at...
  5. V

    Return to previous position if i didnt move too far

    var _dx=inst_3201E64.x; var _dy=inst_3201E64.y; if mouse_check_button(mb_left) { x= mouse_x; y= mouse_y; } if ((mouse_check_button_released(mb_left))&&(abs((abs(_dx))-(abs(x)))<10)&&(abs((abs(_dy))-(abs(y)))<10) { move_towards_point(_dx,_dy,2); } Hi im having an issue im new to game...
  6. J

    Help with object sprite change

    I've been struggling with this for a while. My goal is to have my player be able to open a locker when they are near it using the space key, then after it is open allow them to hold the space key which will hide the player and change the locker sprite from open to closed. I just need help...
  7. S

    GML Player jitter issue when walking diagonally

    Hello, I'm having problems with a tremor that happens with the player object when moving diagonally, I managed to make a code that makes the player move at a constant speed diagonally, but that makes this tremor occur, I tried many ways and I don't know how to fix it, I'm very new to...
  8. G

    SOLVED Moving instance based on position in prompt

    Hi, I'm trying to make a promt that contains buttons pressed by player. Prompt can contain 4 buttons and when player will try push another, first button gonna be destroyed and rest will switch position by one filed. this what im trying to make: here is what I've got so far: Prompt creation...
  9. L

    Need help with melee attacks

    I have been stuck for hours on this and I can't seem to get it working. When I do however, it makes the game crash and unplayable so I'm not sure what to do. Here is the code I've been using for the melee attacking: keyLMB = mouse_check_button_pressed(mb_left); distancex = 4; //you can play...
  10. R

    SOLVED Collisions not working

    I have a player object and an invisible wall object, both of which are set to solid, but for some reason the player can just walk through the walls. It can also walk on top of them, and if it is in a wall it can't jump. The code is below, any help would be appreciated. (code from a step...
  11. R

    SOLVED Assigning an object to a variable?

    In my game I have created an object for my player's lives, and I also have a global variable called 'global.life'. Is there anyway that I could get the obj_lives to link to the global.life variable so that the hearts show up instead of just a number? I have included pictures of my code below...
  12. K

    change background

    hello, how are you, I would like to make a query, and I want to know how I can make a background change when changing level, osea I have a level during the day and when changing the level it is done at night but the background is done in a single sprite as an animation, I would like to know how...
  13. K

    interaction with houses and others

    hello, one question, how do I make my character enter a house by pressing a button, every time I try my character appears in a different position, please help
  14. A

    SOLVED how to make folowing enemy(i 've got a littel problem

    hello I m new here and i need help I m currently working at a project and im not good at programing and i m learning at a programing school and did a contest here i can win a better pc for my futur project I m trying to make a following enemy but i realise that i have4 objectplr(a normal,one...
  15. K

    Please help, no able to create scripts

    Hello everyone, I'm quite new to game maker and into programming. I recently started a game and I'm on the first steps creating the collisions and movements, the collisions it was working fine when I inserted into step/Object, however now I tried to add into a script . I simply copied and pasted...
  16. Evan Kinsler

    [SOLVED] Player Position--when Transitioned to Another Room--is not working.

    So I have variables used to set the next room and x-y location for for my player...but when the program runs...only this works. Only the room transition works but not the x-y position variables--and this is how built and am currently maintaining the variables. When obj_player collides with...
  17. K

    Need help, getting syntax error in breakthrough game from the tutorial

    Hello, I am completely new to programming and I tried following along with this tutorial to make my first game. However when I run my game I get a syntax error. ERROR in action number 1 of Step Event0 for object obj_Bat: Variable obj_Bat.go(100003, -2147483648) not set before reading it. at...
  18. elmagnum

    Sprite prefetch not working?

    I recently converted the project to version 2.3. Is there a change on how sprite_prefetch_multi() works? I used to be able to load sprites before the level with that, but now it's stuttering to load them when they are required, as if the sprite_prefetch_multi isn't even working. The code looks...
  19. S

    Having trouble with making character shoot a bullet lower when crouching.

    I essentially have my character's movement down, but I am having trouble figuring out how to make it so that when the player holds down and crouches the bullet lowers accordingly to the player's shorter height. I am also confused as to make it so that the bullet comes from the tip of the...
Top