coding

  1. P

    Instance_destroy error

    So I have set up some simple code for my game characters(two playable characters sharing a split screen) They can move, pick up keys, open doors among other things. I have an enemy character, he can move randomly and follows player and is supposed to inflict damage on the player characters. The...
  2. M

    i need coding help

    i need an piece of code wich makes "monster" ignore and dont touch the "engerd" and still grab the "appel" and the "gouden appel"
  3. P

    Need Help with setting up a Jump action for Character!

    So I have basic code that allows my character to jump, that's nice and all but I need something more. I want to add an anticipation action before the actual jump for my character after the jump button is pressed. So the plan is to have the anticipation animation which is crouching on the spot...
  4. V

    Help me with audio programming

    So, I need a little help here, I want to make a "music player controll" inside the game with the keyboard, but I am having some issues, the thing is, I want to go from music one to music two when pressing the "R" key, but my code isn't working, it always repeats the same song. Here is a...
  5. M

    GML Visual Drawing Ending Score - Help

    Hey guys. I've been developing a small game and managed to get it to work with the "built in variable" "score". I did powerups and all of these things. But when you die in game, I want the score to appear on the death screen. The score is in the player object and I created another obj_score for...
  6. T

    OpenGL

    I'm confused does GameMaker Studio use OpenGL SL or not? It says it does but when I tried to implement an openGL line of code (glReadPixels) it threw an error saying overloaded function not specified? and yet all the shader syntax and code is written useing the openGL SL?? If so which version of...
  7. Sabnock

    Coders from the 80's

    We are looking for any bedroom code warriors from the 1980's / 90's who played around on any of the old classic machines like the spectrum, C64, BBC, Amiga etc who have now come to GMS to realise their long lost but never forgotten ambitions. We have formed a small group of like minded wanna...
  8. F

    Making a Boot Room/Script

    Hey guys, I'm a little new to coding and GM:S, so please bare with me as I'm not well versed in what I'm saying. Long story short, I need to make a boot room that will initialize global game values and automatically put me into the main menu, but I've no idea how to do it. I have a general...
  9. R

    Enemy Ai

    Hello, I am trying to make a platformer with every enemy having different abilities. However, i don't know how to use AI. I am currently working on an meele enemy but also want to create the following; Electricity, Brute, Scientist (who runs away from enemy and drops key to exit on death)...
  10. M

    GameMaker Pixel Collision issue

    Hey, can I get some advice here? Basically, it's collision detection. See, in some spots where there are 3 or less Solid tiles my character will fall through, it's kind of a big problem. Are there any changes I can make to my coding to fix that? Otherwise, was thinking maybe the collision tiles...
  11. H

    GML How to make text boxes? Looked everywhere!

    Basically, after I searched literally everywhere on the internet, I couldn't find one text box engine that could work well with my game. I tried a few youtuber's engines, but none of them could do the following: - Stay in a box - Stay a certain size - Appear on the bottom if you are on the top...
  12. Luke Pierson

    Wall Knockback [UNSOLVED]

    Hiya, so I've got a dash state in my game, where the player can dash around. I want there to be a penalty when you bash up against a wall while dashing, staggering you and breaking your dash. I have already implemented a knockback effect and stagger sprite changes accordingly. That all works as...
  13. A

    GML Saving a variable [High Score]

    I am trying to make a simple High Score that is saved even after closing the game (its an asteroids type game). Right now when the player ship gets blown up, you transfer to the High Score room. In there you will see two scores, where one says what your final Score was. The other is the high...
  14. G

    GML Camera Issues

    Hello there everybody. I am brand new to GameMaker and this is my first post. I am trying to code a particular 2D top-down camera that I can best relate to function with the Hotline Miami camera. However, there is a key difference that I am trying to implement but have been unsuccessful...
  15. A

    GML GUI Scaling Not Working with sprites

    SO... Here is the issue, I would love to scale my video games for full screen, but the GUI elements will not scale. So say for example, I am drawing a spirit to the screen at a certain position. And the game is scaled to full screen mode. Also if the game is just opened full screen. The GUI...
  16. L

    GML Efficiency

    So i've been taking a c++ class for about a month now. I've learned a whole lot and am trying to program more efficiently in GM now. currently i am coding an enemy AI and i have to ask what is faster? Using built in functions to calculate distance or angles, or doing it myself with math? For...
  17. T

    Need Helps with Mobile Game

    Hey I am developing a mobile game and I have some issues: There is a start button on my game and I placed a virtual key to cover it. When I try it on one phone it is positioned correctly, but when I try it on a different phone the virtual key moves upward significantly. I don't know why. I was...
  18. Luke Pierson

    (SOLVED) Saving and Loading ini files

    Hello! So I've been working on saving and loading my game using ini files: Here's what I have so far: I set saving to false at the end because saving variable for obj_save is triggered when the player reaches a checkpoint. I change that to false so that it doesn't constantly save. Anyways...
  19. T

    [SOLVED] Way to have an animated object in a GUI?

    I'm trying to include an animated sprite in my game as part of a GUI system, but the xview and yview options in the draw event only seem to draw one frame of the sprite. I want a sprite to start at frame 0 and then end at frame 10, something I usually code in the create and animation end events...
  20. F

    doors & keys

    I need help with coding a door that open's if the player has a key to open the door.
Top