progamming

  1. D

    How i make enemy health bars

    How i do enemy health bar in top of the enemy in gamemaker studio 2
  2. A

    changing a sprite using the same button

    Hi, i was wondering how i can change a sprite multiple times using the space bar, since they are dialogue buttons, so when the first appears i can press space and change it. then again and it will change. im not very good at coding and any help will be appreciated.
  3. R

    I need help with my movement script

    So I've been working for hours now trying to set up a perfect movement script. I have everything working but when I go to a corner while holding two keys EX: Down and Right, it will move normally but once I come into contact with the collisions on the ground it will walk just right (which is...
  4. J

    GML Enemy animation and behavior bug

    Hello, so I made an enemy from a tutorial by Shaun Spalding. And added a little animation code. But I have several problems and I tried to fix them for two hours but still no luck.1. The enemy does not change sprite when walking left.2.When the enemy is attacking player he showed the right...
  5. P

    Question - Code Mask Backgrounds - showing through a mask the background behind

    Hello, I've being trying to create a way to make a certain area of my level to show the background bellow. At the moment I have two layer of background, one with color (behind) and one without (front). my objective is to create a mask on the front background so i could see the behind background...
  6. E

    GML Help with shooting recoil problem please!

    I have a variable "can_shoot" that equals to true if I can shoot and to false if not. I also have a variable "shoot_delay" that equals to time (steps) of alarm that makes "can_shoot" variable equal true. So when I shoot I need to make my bullet object make a "recoil" with changing it's...
  7. H

    HTML5 instance_create_layer() not working at all

    Hey guys, I just bought the license for html5 and I thought of porting my game in it. The game works fine on windows but I found that on html5 the instance_create_layer() is not working at all. So I made a new project to test it again and sure enough, it was woking on windows build but not on...
  8. D

    GameMaker (Solved) How to create and add in fonts in Gamemaker Studio 2?

    New user here! I have a very stupid problem, I can't find any tutorials on fonts! Apparently, the last complete tutorial on fonts was by Shaun Spalding, and it was for 1.4, so I decided to look on the forums. Can any of you help out? Thanks!
  9. S

    GML Reflecting Lasers [SOLVED]

    Bonjour all, I've come across a math problem that I can't seem to wrap my head around. I'm trying to create realistic laser reflections off mirrors, that can be calculated on the fly with any angles. The angle of the incoming laser and the angle of the mirror it is hitting are both available...
  10. J

    Unsure of operator issue

    I've been following the tutorial from Shaun Spaulding regarding Basic Artificial Intelligence He constantly uses state_text in this form state_text = ' ' ; He uses a different word to identify which script it's using. The problem is everytime I use it, I get this error: "unexpected unary...
  11. L

    GameMaker Transparent mask that doesn't render sprites

    Hi I want to create and object with tranpsarent sprite/mask that won't redner any sprites. I found one post in forum, but I didn't understand how to realize it. I am not good with shaders and surfaces. What I need to do? Here is post I found...
  12. L

    GameMaker How can I recreate keyboard_check_pressed Event

    Hello Game Maker users! I want to understand how keyboard_check_pressed Event. I mean when I draw this Event, it draws FALSE, when I press key it shows TRUE and after 1 frame becomes FALSE again. I need to understand how it changes itself to TRUE and then immediately turns to FALSE. Because I...
  13. T

    Procesuraly add 3d effect.

    Hello internet, This might be very confusing, but here's my problem: I made a puzzle game where you have maze 'pieces' with a 3x3 layout with one or more entrences/exits. The premise of the game is that everytime the mplayer walks into one of these it turns 90° before the player can leave...
  14. G

    Variable Value Detecting Help

    I am creating a game, where you click on an object to earn money. I have the counter working so that it adds every time the object is clicked. What I want to do next, is have an image pop up when a certain value is reached. Example, when the counter reaches 100 or something like that. So I guess...
  15. L

    Legacy GM Sentry Enemy Coding Help

    I'm working on a stealth game and revising some mechanics. I have a sentry enemy that used to have a constant, swiveling line of sight. I'm trying to change it at the moment so it instead lies "asleep" for a few seconds, "blinks awake" for a few seconds during which it can detect the player...
  16. Q

    GameMaker Level Help

    Hey Guys, I need and would appreciate the Help on this one. i am trying to create a level between levels sort of a Mini-level except i don't know how to get it working (sorry if this doesn't make much sense it is difficult to explain) but here is the code i am using, in the creation code of...
  17. Niels

    Job Offer - Programmer Looking for a coder to help me build some game mechanics (RPG)- paid

    Hi everyone, Im currently working solo on my RPG (lite) project and I would like to hire someone that could help me out building some mechanics for it. The game I want to capture the wonderfull tactical combat of baldur's gate, icewind dale (and a tiny bit of world of warcraft) combined with...
  18. I

    apparently index[1,1] is out of range [1,-1]

    I'm officially lost. trying to make branching dialogue with npc but stuck with array going out of range for some reason. here is a bizarre crush report: ___________________________________________ ############################################################################################ FATAL...
  19. J

    Transition Issue

    I've been using this video as a tutorial: In one part of the tutorial, he instructs us to code for the transition to another room. But when I enter through the room for the transition, the fade works, but this error appears: FATAL ERROR in action number 1 of Draw Event for object obj_fade...
  20. XanthorXIII

    Discussion Screen Resolution set before Game Renders

    Is there anyway we can get a change to GameMaker that involves changing the way Resolution handling is done? I feel that letting the first room dictate the screen resolution is out of date. I’m currently using PixelatedPope’s method of screen resolution handling which is good, it still bugs the...
Top