gml

  1. U

    GMS 2 Distorted screen on actual machine

    Hello. I'm Japanese so I rely on Google translation. sorry. When I started the game made with EXPERIA5, the left side of the screen was distorted, and the right side of the screen had some objects visible. It is said that android puts garbage on the data outside the description, and it seems...
  2. K

    spacing between damage area spawning - help me

    I'm programming a boss that spawns areas of damage across the map, but right now some areas spawn in the same place or too close to each other, thats the code for the spawning in an alarm event, it uses random ranges to define the y and x of the damage areas, of course that there is nothing in...
  3. K

    SOLVED Player spawning to wrong x,y position upon loading

    This is my first forum post here, so if I neglect to put any important code please tell me and I'll try to include what's needed. I'm working in GameMaker v1.4.1804. I've followed Shaun Spalding's JSON based save/load tutorials and I'm run into a problem. Whenever I load my game, when I go to...
  4. U

    SOLVED Move the room as an argument

    Hello. I want to place an advertisement when moving from room 2 to room 0, so I want to use the if statement as an argument to move from room 2 to room 0. How should I write?
  5. U

    GML About advertising programming

    Good evening. I am developing an android game app. I want to use Intermotional Ads with Admob. I tried programming based on the following URL, but nothing happens. .. .. There is no error. https://help.yoyogames.com/hc/en-us/articles/360002971751-iOS-and-Android-Google-Mobile-Ads-Setup The id...
  6. KingRegicon

    Simple Viewport Setup- Can I Toggle Tall and Wide?

    Hello, everyone! I have been practicing GML for a few weeks now, and I'm really loving the problem-solving aspect of programming. The manual, online tutorials and GML forum posts have helped me through every problem I've faced so far, but now I must write my own post in desperation. The Setup...
  7. Selafio_Carcayu

    GMS 2.3+ Returning to GMS

    Hello everyone. So I started in GMS when it first came out, and it took me for ever to understand even the most basic concepts, I honestly don't have the logical skills to code. And just when I had some understanding, thanks to Shaun Spaulding and Heartbeast, GMS 2 was launched, so I rage...
  8. ohdudehelpme

    GMS 2 How to make a shrinking red zone (Battle royale type)

    Hello, I'm a little new on this forum I have recently moved from GM8 to GMS2 I want to know if there's a way to make a shrinking red zone and its safe zone which can hurt the player if its outside the safe zone, can please someone help me?
  9. netoxinaa

    SOLVED Image index toggle

    Hello, I have this Flame object with of course a Flame sprite which I want first to start animating. Then when it reaches to the last frame, I want the object to toggle between the last 2 frames for some seconds. I have the following code in the step event, but it seems like it never enters into...
  10. U

    GML Character button operation

    Good evening. I'm Japanese so I use Google Translate. For some reason, you have to change the character from keyboard operation to on-screen button operation. I used the keyboard to move and change the sprite, but I have to display the move button on the screen to make it for the sootphone. I...
  11. netoxinaa

    Vertical Object Collision

    Hello, I'm building basic platformer mechanics and I want to implement object collision but I'm having a problem. This is the code I wrote (just for vertical collision): if (vSpeed > 0) bbox_side = bbox_bottom; else bbox_side = bbox_top; if (place_meeting(bbox_left, bbox_side + vSpeedFinal...
  12. U

    SOLVED The character disappears.

    Character disappears when no keyboard is pressed This is the only code for that player. thanks! --o_player1.step-- left = (keyboard_check(vk_left)); right = (keyboard_check(vk_right)); up = (keyboard_check(vk_up)); down = (keyboard_check(vk_down)); hspeed = (right - left); vspeed = (down -...
  13. TheOnlyWRT

    Rotate a sprite without rotating its collision mask

    Hello! So I am working on a platformer where the player can roll. I have been coding the rolling motion by moving at a certain speed over a given distance and rotating the sprite using image_angle. However, with gravity, the player gets stuck in the floor. I realized that this is because using...
  14. U

    SOLVED Code for keyboard movement

    Hello. I am now writing code to move the character with the keyboard. The code below I wrote is flawed. For example, if you press the left key while holding down the up key, and then release your finger from the up key, you will continue to move to the upper left even though you have only...
  15. Gorshalox

    GMS 2 Jump Animation

    So I'm making 2d platformer and I don't know how to make correct the animation of jump, in my case the player jump and the animation is playing very fast and ends in air, I will post the my animation code in Step Event below //Animation //===Walk if (key_right) { sprite_index =...
  16. witches

    SOLVED Dynamic Outline Shader from Surface

    Hey all. So I'm working on an outline method where I sample a surface texture of a couple of sprites and send that through a basic outline shader and basically clear and repeat. So far it works well, but there's a tiny outline of my sprites being created even when they're both being drawn onto...
  17. Q

    2D Tile Collision help

    So I'm making a game where the player needs to collide with walls and stuff, right? I watched every tutorial online, but there are none that show what i want (a player that can collide with tiles using his bounding box) So I came up with this code, and the X dimension collisions work most of...
  18. A

    Windows File IO breaks after compilation

    Hi, I'm Atell. I've been familiar with GMS2 for a long time, however, this is the first one I need to actually create an executable for my project. And I've faced a problem. It runs fine when I test it in the virtual environment, I see config files being created and loaded, various logs I've...
  19. L

    GMS 2 Need help with a physics based cannon game

    I want to make a game where a physics object is launched from a cannon at different speed and powers, the problem is getting the object to launch out at the angle of the cannon but the function physics_apply_impulse() is based on having an x force and a y force not a power and an angle... so my...
  20. A

    Check if game is played for the first time?

    Hi all. I would like to know if is it possible to create a system where it checks if a game is played for the first time. I plan to redirect the player to a "tutorial room" if the game is played for the first time. After that, the "tutorial room" won't be accessible anymore since it will be the...
Top