gml 1.4

  1. Mr. SadGhost

    GML want to get Instance's coordination

    Hey peepz i'm back again! I have a map that is draggable with the mouse. Now i have some icons that are on the map itself, and i want to keep those icons "attached" to the map when dragged. I came up with this code which will put the object on the map, but takes a lot of time to get it in the...
  2. Mr. SadGhost

    GML can't figure out this if statement

    Hey guys I'm a real beginner when it goes to coding, so this is pretty difficult for me, and I do need some help. SO the idea is: that I want to make a panel that when it's clicked that it pops open(goes to the other sprite) and when clicked again that it becomes small again(goes back to the...
  3. TheGhostMan

    SOLVED What is the purpose of ; after a line of code?

    I been using Game Maker since 11 years of age ( Year 2007 version Game Maker 6 on Windows XP ) and have never understood what the reason of putting ; after a line of code was for. Yes, I know after 14 years of GML and I still don't understand the purpose. I'm quite experienced with GML, and...
  4. T

    How to make changes on an object when another object is clicked on?

    hi In game maker studio 1, I want to make some changes on object A when the user clicks on object B. but I don't know how to define the events on these two objects. any suggestions will be appreciated.
  5. E

    I need the Actions eventtype and enumb (object.gml) [GMS 1.4]

    Hello, i recently had a big problem, the problem is a bug (maybe?) of the gamemaker project, because i deleted a script, it caused an undefined behaviour and when i write a code, it doesn't appear in the game execution. The thing is that the project is kinda long to rewrite, also the objects...
  6. E

    [SOLVED] C++ pthread (an attempt to do a multithreading function)

    Hello, i don't know what is happening right now... because i'm doing a dll function that should be doing a task in another thread. My actual attempt is to make it work after compile, because yes, it compiles... but it throws me an error "LoadLibraryA failed with error code 126" and this only...
  7. 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...
  8. E

    trying to get the pitch or vertical angle

    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...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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?
  14. 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...
  15. 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...
  16. 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
  17. 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...
  18. 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...
  19. 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...
  20. 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...
Top