programming help

  1. D

    GameMaker Collision Shape does not match the sprite

    I am using the built-in collision system in the physics of Gamemaker 2. I have some complicated shapes, and while the collision mask can be set to 'precise per frame' (allowing for only the non-clear pixel to have the collision mask), the collision shape in the physics engine does not have that...
  2. G

    GML Is there a way to get the audio sample being sent for playback, or its file name/path?

    Hello all! I'm working on a game where music is a strong aspect of both gameplay and visual style. One of the effects I want to do requires knowing what is currently playing (or about to be played) to create an effect from it, much like a visualizer. 1) Is it at all possible to poll any part...
  3. Y

    GML how do i make inventory system like deltarune style

    i wanted to know how to make an inventory system almost like deltarune. there are two pages of items with a total of 6 or 8 items on each page, after clicking on the item I choose whether to use it, throw it, assemble it, etc. and I choose the items with the arrow keys. if there have any...
  4. B

    GML how can I show enemy hp variable in the debugger after hitting it with a attack? / how to make a attack not multi hit

    my attack code is if alarm[1] <= (0) {show_debug_message("placemeeting") alarm[1] = 2 if keyboard_check_released(vk_shift){show_debug_message("placemeeting shift on") alarm[1] = 2 hp -= 2} } but for some reason its dealing the damage 10 - 20 times it changes every time. I wanted to...
  5. C

    HIGHSCORE (need help)

    Hello community! my game is ready and it works. but I can't get any further with the high score function. or I don't have any idea yet because unfortunately all the tutorials and chatgpt didn't help and were incomprehensible to me. Maybe someone can help me? especially where I have to use the...
  6. mcqueen.

    Colored Text Effect.

    Hi everyone, I've run into this problem. I wrote the code in order to make the word or words of a certain color I need. But instead of coloring one word or certain words until the end of the interaction with the sentence, for literally a second the entire sentence is colored for me, after...
  7. joshua:)

    GameMaker help with game

    hello! so i made a game where you basically are falling down a void type thing and you have to avoid objects. there are green bars you can collect as you are falling. if you collect 4 green bars and press space you get to go down the void faster for a certain amount of time. BUT right now you...
  8. P

    GML Object sprite duplicating whenever it moves behind the background after sizing player object down

    I created a character controller and it seemed to work like a charm! However, one of the room backgrounds was too small to be stretched, so I just sized the player down on the room editor. Then, on accidentally going outside the background(which I have made a fix for), the sprite seems to...
  9. F

    Vertical Collision And Movement Help Please

    So I've gotten into coding for the first time (started a couple of days ago), and I'm following tutorials on youtube and checking this forum for help. I am trying to make a game where you are a UFO, and can jump in the air and can move around. I want to make it so that when you are on the...
  10. Lucas Luel

    SOLVED How to choose the amount and pause time for enemy projectiles / bullets?

    I made a ranged attack for one enemy on my game project, with one object, and the code works... Code: var _inst = instance_create_layer(x, y, "Projectiles", obj_purple_projectile){ _inst.speed = 4; _inst.direction = point_direction(x, y, obj_player.x, obj_player.y)...
  11. L

    I'm having some issues with programming a hit and death animation for my enemy.

    My enemy is having some issues when its dying and being hit by the players projectile. When the enemy is hit, it plays the enemy hit sprite animation, which i want it to, but it doesn't change the idle sprite and its just a duplicate sprite. It also starts moving on it's own which is very...
  12. L

    SOLVED Need help with making the projectile flip whenever i look either left or right.

    I have the basic character shooting code but i'm not quite sure how to code in a way for the projectile to flip everytime you look a vertain direction. For example when i look left, my projectile shoots and moves backwards. here's my shooting code: if can_fire and...
  13. jameswillis

    Vertical Sliding Menu Not Working

    so im trying to create a vertical sliding menu, and i followed a tutorial on youtube for it, however my project is working the way the guys does in the video. I've triple checked to make sure the code is correct. I had a programmer friend who said based on the error that GMS gave me that the...
  14. y Acid

    game_restart but restarting on other room rather than the top room order one

    So, I recently started using GameMaker Studio 2, and also programming on its language, so, to help me out, I looked up a tutorial on how to make a game, and found the GML GameMaker tutorial "Your first game", where you build a game called Space Rocks, and after 2-3 days "making" the game, I...
  15. McJazzhands

    SOLVED Creating a group of active enemies that function as one unit

    Heya folks! I'm back with a question relating to Gradius once again. This time around, I'm trying to recreate the bean enemies you see when you start the game, shown below: What I'm aiming for is a group of identical enemies (A) that drop a powerup capsule for the player when the whole group...
  16. F

    How do I randomly choose 1 of 2 objects to appear in the room?

    Hi, I'm trying to make a game where 1 of either 2 objects will appear in the room randomly, but i'm not too clear about how. do i code this in object 1 or object 2, or an entirely different 'manager' object?
  17. FeliX Games

    I'm super confused about this and really need help!

    I have an object oController with: -> Create Event: /// @description player stats global.level = 1; global.exp = 0; global.exp_till_next_level = global.level * 10; global.player_hp = global.level + 100; global.player_dmg = global.level + 10; -> Step Event: /// @description control player stats...
  18. NotKrixxppi

    Using the position of the mouse to trigger an event.

    Hello everyone, I was looking for some assistance on a rather simple question, I was wondering if you could use the position of the mouse, to trigger an event. For one of my projects I would like to make it so whenever the player's cursor reaches a range of an (x, y,) coordinate that an event...
  19. A

    GameMaker Help with black screen in GM 2

    Hi all, I'm a GM2 beginner. I made a game using Drag/Drop on GM Studio 1.4 and imported the old game from GM1.4 into GM2. However, when I run the imported game on GM2 and click a button (i.e., button named "accept_practice_F1" from the screenshot), the game screen goes black and it crashes...
  20. T

    Giving a colliding object your variable value.

    I have a game which has the main character (a light bulb boy) interacting with several intractable electric objects. The electric objects have two main "states" (though no real state system has been implemented yet), where they are either turned on or off as indicated by sprites. I have a system...
Top