• Hey! Guest! The 40th (!!!) GMC Jam will take place between February 25th, 12:00 UTC to March 1st 12:00 UTC. Why not join in this very special anniversary jam! Click here to find out more!

gml 1.4

  1. F

    Teleport station problem

    Hi! What's up? Before explainning my problem I have to say, 1. English is not my maternal language, sorry if I have mistakes! 2. This is my first post, sorry if i don't follow any rule. Well, my problem is that I'm developing a game with a few friends, everything was going (almost) excellent...
  2. E

    [SOLVED] Get pitch from two 3D vectors (What's going wrong? D: )

    Hello, i'm trying to get the pitch or vertical angle between two vectors. The thing is: What's going wrong?. I've investigated, and the suposed formula to do it is: void getAxisAngle(EntityPlayer a, EntityPlayer b, out double yaw, out double pitch){ double deltaX = a.posX - b.posX...
  3. KamilSeven

    GML (SOLVED)Flying/Hovering Enemy A.I. Motion Planning (Like in Super Create Box)

    Hi! I want to build a flying enemy motion planning for a side view game (Super Crate Box clone for learning purpose). I've tried using a simple motion planning line to achieve it. But the issue is, mp is creating the shortest path to the target, so it doesn't give the effect of flying/hovering...
  4. Acid Reflvx

    SOLVED [Fixed] How do I find the precise number for when I set my track's position in GameMaker 1.4?

    I am making a game with a level editor, sort of like Geometry Dash. I've been trying to add a Geometry Dash feature to the game; being able to play music at certain points instead of having to play music and wait until it gets to the part you want to test. Here is my problem: I don't know what...
  5. yvodlyn

    GML mini map on infinite parallax (view/room)

    Hello everyone! For my game, I made a mini map. Everything work. However there issue I can't solve. When the game start, we can see objects on the mini map. however, as the game room/view has no limit, objects from the mini map go away (the leave the mini map) I would like to know if someone...
  6. 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...
  7. V

    GML [1.4.999] Preventing # from going next line

    I am trying to prevent hash character from going next line. I have already tried string_pos(ord("#"), message), keyboard_check_pressed(ord("#")), and string_pos(ord("\n"), message), but apparently they do not work. How can I check if # key is pressed? Or is it not possible at all?
  8. MatteKudasai

    SOLVED Problems with Place_meeting on 1.4

    I'm trying to make my character mount on a horse when I press "K" close to it. The way I would able to do is making another object, the character on the horse, and create it when I press the button, while destroy the char off the horse, and it worked but I'm trying to limitate to just when is...
  9. Null-Z

    GML trouble with creation code(SOLVED)

    I'm trying to make an object with empty variables in the create event that I can fill in the creation code event. After managing to get it running and not immediately giving an error, I found the object in question was not creating the desired object designated in the creation code. currently I...
  10. Null-Z

    Legacy GM (Please Don't) Exit stage left. SOLVED!

    For my Boss object, I have a phase where it hovers over the player before dropping down. I want it to move back and forth around the player's X before dropping. the problem? it just float's away seemingly ignoring the conditions I set for it. What am I misunderstanding? Functioning code
  11. Liam Earles

    Legacy GM Need help coding the punch mechanic!

    I really need help right now with this character I'm doing for my game, and it's getting very frustrating. I'm trying to code Idle, Walk, Jump and Punch animations together, but with one of the playable characters it's not working. Every time I crouch (Which is a cartwheel technique BTW), and...
  12. B

    Need help implementing state machines

    Hey, so I have been working on a top down RPG and I am trying to implement a state system to switch the players states i.e ( idle, movement, sprint,attack,etc). I'm fairly new to GMS(I'm using GMS 1.4.9999) and have some minor coding experience. The problem I am stuck with is that when the...
  13. S

    Legacy GM State Loading issue

    I'm currently having trouble getting my load game script to work across all of my rooms. It's very odd and no matter how much I rack my brain I just can't seem to figure out what is going on! Technically everything is loading in fine except my inventory which I'm just using ds lists to...
  14. Andrew R. C. Beck

    Legacy GM [SOLVED] Movement being interrupted by other buttons

    Howdydiddly all! I am having an issue in which the user controlling a ship should be able to move left and right as they wish whilst maybe using other buttons, but everytime another button is pressed as well as the left or right move keys, the movement is interrupted until they press move again...
  15. Null-Z

    Particle Problems(CLOSED)

    I'm trying to create an "after image" effect for a projectile object. the problem is the projectile itself changes it's angle on creation to point toward the player object. I've tried but that does nothing. (obj_ParticleExper is the object I want the particle to match angle orientation.) what...
  16. LanderMiskolczi

    Legacy GM Camera Wont Shake

    For some reason my camera wont shake, when I press H the screen should shake, but instead it stays still like normal. Here is the step event /// Follow the player if (instance_exists(oPlayer)) { var xTo = (oPlayer.x - x) / 25; var yTo = ((oPlayer.y - 16) - y) / 25; } x += xTo; y += yTo...
  17. shostifrosty

    Falling Sprite not working as expected

    Hi there! So I'm a little bit of a noob with GML (and programming in general, unfortunately) and through several tutorials and looking up the manual, I'm trying to figure out how to make the basic movements of a platformer game. The thing is, I made it work basically – movement, jumps...
  18. Liam Earles

    Legacy GM Particles keep disappearing

    So, I was working on a snow particle effect for my game, and while the particle is created successfully, it would only be created once. I'm trying everything I could to loop the effect but I can't find anything about recreating the particle effect after being created once. Here's the piece of...
  19. royer14

    GML how to create animation in scale

    Hello, I have an Object Obj_box Now I have created a 64x64 sprite and what I want is that in step event the animation is similar to the one in the image below Well I do not want to use so many sprites for the animation and my goal is to do it with gml, could you help me? var scale = 1.4 while...
  20. Divinik

    GML Looking Through Two Arrays for Duplicates?

    So I have a ds_grid that holds all items in the game. In the Inventory's Menu, there are tabs that copy certain "Types" of items from the master grid and creates it's own ds_grid for that tab. I'm trying to figure out how to delete the same item from from the sub arrays and the main array when...