gml

  1. JesusOnExtasy

    [RPG] Darkest Age (New design) [+Demo]

    ★ New visual effects ★ ★ New inventory items ★ ★ All Stats Functions ( stable ) ★ ★ Inventory Functions ( stable ) ★ ★ Purchasing items in the store ( stable ) ★ Download Demo : Darkest Age 0.009v (Android) Darkest Age 0.009v (PC) Game work plan : - Create craft system. - Improved game...
  2. L

    Player hurt sound plays when not being hit

    function perform_attack() { if image_index >= attack_frame and can_attack { can_attack = false; alarm[0] = attack_cooldown; var _dir = point_direction(x, y, obj_player.x, obj_player.y); var _xx = x + lengthdir_x(attack_dis, _dir); var _yy...
  3. LEFH

    SOLVED Problem with collision and jumps

    Hi! I'm learning how to code these days and find a bug in my game, basically if the player collides with a vertical block and holds jump he makes a teleport (video attached). This doesn't happen all the time but I would love to know what is wrong with it. Thanks! Jump: if (_ground) // só...
  4. L

    I Need help fixing error in my boss fight, I am trying to fix everything before my A level due date , ALL HELP APPRICIATED

    My plan for the boss battle is to have the boss hit the ground every 10 seconds that causes the whole floor to damage the player if they don't dash, when you dash you have a few seconds of immunity, I want the boss to flash white a second before i does the attack, the boss can be stationary and...
  5. A

    SOLVED Object moving problem in Space Rocks

    Hello. I've jsut started Space Rocks game tutorial and wanted to implement slowdown of the ship to the full stop when i release vk_up or vk_down. The code for UP is working fine, when i unpress UP the ship slows down. But if i press Down even one time the ship is still moving with increasing...
  6. M

    how to make image scale for wall jump

    for var meeting_right = place_meeting(x + 1, y, oBlock); var meeting_left = place_meeting(x - 1, y, oBlock); onwall = meeting_right || meeting_left; how do you incorporate image scaling to make it look left on left wall and right for right wall
  7. M

    why does onwall = place_meeting(x+1,y,oBlock) - place_meeting(x+1,y,oBlock); not work

    I am trying to do a wall jump and this should check to see if on or next to wall. it doesn't work after doing all the rest of the code for the wall jump
  8. Y

    GML Sequence not running

    I have a function that runs a sequence in the middle of switch statement as part of a turn based game. The problem is that if I simply call the function like I would any other function, it does not run. The only way it does run, is if the switch statement goes to the next case. It would seem the...
  9. BFBDev

    GML Having trouble with alarm

    So the intent is that when bows are collided with (by a hitbox type thing), they stop being able to fire, AND I GOT IT! Proud of that bit, took me some digging, but it is only meant to be temporary, and I'm having trouble carrying things over to the alarm function I guess? Sorry if I'm bad at...
  10. R

    GML A different take on a repeat problem (I think)

    So Im not sure if this is the correct place to ask, but I am modding a game that uses game maker (Zero Sievert) so i have to use utmt which has trouble with structs. To get the code to implement I had to go through asm but managed to get the code for the new difficulty to save but everytime I...
  11. R

    Problem with Slopes

    I'm trying to make a slope system, but the character sometimes gets stuck on the slope, and he can't walk in the middle of it, can someone please help me fix this. //Input do player var _right,_left,_jump,_atk; _right = keyboard_check(vk_right); _left = keyboard_check(vk_left); _jump =...
  12. P

    Where should I put "if y > sprite_height" in this code

    I've been trying to implement analog controls in my SHMUP game, and, while successful after looking at other forum posts on this site, I'm having trouble trying to limit player movement and make it impossible to leave the game view. Before putting in gamepad support, I implemented events like if...
  13. S

    GML Power Up that affects all weapons in inventory(array).

    I am trying to code a pickup that will affect all weapons in inventory. For example; all obtained weapons gain a decrease in cooldown for 10 seconds. I currently have a weapon creation script that uses an array for player weapon inventory and can adjust attributes from there. I was thinking the...
  14. FoxyOfJungle

    Development Stack Overflow discussion

    Hey everyone! So today I had an idea to create a thread out of curiosity: have you managed to get a Stack Overflow on GameMaker yet? how did you do it? I believe this topic can be useful for anyone who encounters a problem like this. :) The funny fact that everyone knows is that there is an...
  15. M.G.

    GML Question about the experience bar

    Hello, I created a vertical experience bar. With the following code: Create: global.exp = 0 global.max = 10 Draw GUI: draw_sprite(spr_bar,-1,0,0) draw_sprite_ext(spr_exp,1,0,0,1,global.exp/global.max,0,c_white,1) With every mouse click I get an additional experience point. But there...
  16. R

    GML Issue with collision_rectangle/collision_circle

    Hello, I am attempting to use an algorithm in my top-down shooter game that will essentially continually simulate possible x and y values to spawn an enemy in, and if deemed "acceptable" then the enemy will be spawned. I am using collision_rectangle (currently, I tried collision_circle before...
  17. R

    SOLVED Difficulties with 2-Dimensional Array

    Hello, I am attempting to utilize a 2D array for a top-down shooter game. Essentially I have a sprite-less object which is the "director" for the enemy spawning algorithm and I am wanting to initialize the array to store the "points" assigned with each unique enemy. Then I will assign a maximum...
  18. G

    GML [Solved] Suggestions on how to create an "scratch-off ticket"-like effect

    Hello everyone! I want to create something like one of those "scratch off" tickets, where you uncover a portion of a graphic based on where the mouse is. I thought about using a surface to help create a mask, but since they are volatile, all the uncovered bits are lost when focus is lost. I...
  19. El Maul Cosa

    GML gp_select not working on Android

    Hello, i made an instance that deactivate an instance layer for the UI if you are using an gamepad in Android, for some reason the select button doesn't work to do that, other buttons like start or the buttons that i put in this code are working perfectly. Is there a way to use "gp_select" on...
  20. The Water Is Shallow

    GML Can I use the value that only exists in some items in the struct?

    { textArray:[ {text:"text1"}, {text:"text2", color:c_aqua}, {text:"text3"}, {text:"text4"}, ], defaultColor:c_black, port: SprPortChar1, name: "Char1", nameColor: c_black, } << It can be awkward because it's written in a translator >> I...
Top