progamming

  1. C

    GameMaker How to increase images?

    I want to add pictures and buttons at the beginning and end of the game for the player to choose to start the game and end the game, but I don't know how to make the pictures show and hide.
  2. Lucas Luel

    SOLVED How to change npc enemy sprite depending of the direction?

    Someone can help me? I've draw/animate 4 directions ( Idle, Walking) for a enemy for my game project, and I've already programmed the script to the enemy move independent and chase the obj_player, but I cannot to change the enemy sprites depending of which direction the enemy npc is walking or...
  3. SirDragdord

    How to make brightness shader?

    Hello. I have several layers of tiles and 2 layers of background. I want to make a shader that will make one particular background layer brighter at a certain radius from the player. Please tell me how to do this. Thanks in advance for your time
  4. D

    (Solved) Trying to get elevator doors to open and close properly

    Sorry if this is a really stupid question with a simple response, but I can't figure this one out. I have three objects; Elevator button, elevator open, and elevator close. Here is the code for the Elevator Button (step event) if (place_meeting(x, y, obj_player_1)) &&...
  5. GeffreyDrogon

    Player character sprite not facing the direction he's jumping in while in mid-air

    I've completed the fourth tutorial in Slyddar's drag-and-drop GameMaker Studio 2 series, but I'm stuck trying to solve the problem of letting the player sprite be able to face the direction he's in if you move left or right while in mid-air after a jump. Slyddar says that creating a script is...
  6. 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...
  7. 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...
  8. R

    SOLVED Timer not working?

    I've tried to create a countdown timer for my game, but for some reason it doesn't seem to be working/displaying on screen. Could someone tell me what I've done wrong and how I could fix it please?
  9. 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...
  10. Evan Kinsler

    NEED HELP on the `visible` variable for my GUI event.

    So I am trying to take advantage of the visible built-in variable and I need help with my approach. The Draw GUI event is tied to the object in the GIF. When I set the Draw GUI event to what is seen in [ 1 ], the text box just stays there. When set to what is seen in [ 2 ] & [ 3 ], the text...
  11. IgnacioG

    SOLVED Problems with collisions at the edge (2D platformer)

    Hi everyone, I need help with a somehow specific problem. I'm working in a 2D pixel platformer and obviously one of the first things that I implemented was collisions with platforms. To be honest collisions aren't my forte so when I found this problem I ignore it at first but is been a couple...
  12. I

    Probleme With the switch expression and array.(noob)

    Hello everyone! I am new to programming and I do not understand why my code is not working. I thought it is possible to assign multiple variables via an array. Here is my code. Have a lovely day everybody! // Step event //Controle Jeux. keyRestart = keyboard_check(ord("R")); keyQuit =...
  13. Tyg

    Shaders Neon Dreamz (path shader)

    UPDATED v1.12 Hello this is really cool A shader that uses paths, i don't know i just thought it would work and voila (the poor paths always get ignored) well this is another use for them why is this cool, Umm first its Neon and its made to work with gamemaker paths, so you can draw and edit...
  14. S

    GameMaker Building to mac, getting old version

    Hi all, I'm making a game in the windows IDE. I'm trying to build it to mac using a mac computer in my house, but whenever I produce a .exe and transfer it over to the mac, It ends up being the wrong version of the game. It's missing many of the features of the current version, doesn't work with...
  15. S

    GameMaker Reading from outside buffer

    Hey all, I've run into a weird networking bug. I've got two projects, a client and a server. When I run both on my local computer, or both on an Azure VM, they work fine. However, if I try to run the client on my local machine and the server on a VM, I get the following error as soon as I...
  16. 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...
  17. 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
  18. SirDragdord

    Shooting from moving points

    Hello, I've got my main ship programmed and everything is working fine, but I'm having the issue where my bullets are originating and I'm not quite sure how I would make it originate from the front of the guns. Origin point in center. In ship's step event i programmed: image_angle =...
  19. N

    GameMaker [SOLVED]Controls for 8 direction

    Please help me make the 8 direction control, I have arrow control, but I would like to make the control on W, S, A, D Here is the code: Create: spd = 3.0; image_speed = .4; Step: //move hInput = keyboard_check(vk_right) - keyboard_check(vk_left); vInput = keyboard_check(vk_down) -...
Top