1. S

    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 =...
  2. N

    GMS 2 [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) -...
  3. Bulldrome

    Local Multiplayer Help

    Hello I'm nearly finished with this little space ship arena game I've been working on and I just need to implement local multiplayer and I'll be just about done. I currently have 4 ships each with 4 colors set up on a character select screen of sorts but I need help setting up the controls for...
  4. L

    GMS 2 Turret rotation not centered(even with correct origin)

    Hello everyone! I am making a pixelated space game(my first game, if we are not including games following tutorials :D), and on top of the ship there is a turret mounted to it. I have set the turret to rotate towards the mouse using point_direction(mouse_x,mouse_y), and to follow the ship using...
  5. Bulldrome

    Help with Character Select

    I'm currently working on a game that requires a character select screen. I've got the screen set up but don't know how to get the selection of the character to correspond with actually spawning in the character selected. I have a switch statement set up to select each ship (character) and a...
  6. L

    GML Fighting game round problem code

    Im pretty new to game maker but currently i have made myself a fighter game. Everything works including health bars and attacks What im struggling on in making code for a round based system. Im not sure how to implement such a code. when the game starts it will be state = round1, when...
  7. Jmarlin3

    Issue with while loops

    The purpose of the next few lines is add a number to y to make my object move if(keyboard_check_pressed(vk_down)){ y += movespeed; } The code above works just fine, but when I change it to a while loop: while(keyboard_check_pressed(vk_down)){ y += movespeed; } The goal of the while...
  8. P

    InAccurate Collisions

    I have problems programming the game, it happens often when lots of collisions between moving circles happen in one moment. And maybe someone can help with borders physics: Now I just have different code for vertical and horizontal borders: dircetion-=dircetion //for horizontal borders...
  9. MatteKudasai

    GML Problems on making bullets work

    I'm trying to make a Shooter on Gamemaker Studio 1.4 and didnt find any tutorial about it. The idea is a Megaman-like game plus upwards shoot using only code, but I just started using GML and dont have any other experience in programing. Sorry if I mispell something, i'm Brazilian and have a...
  10. L

    Need help with this error

    The error is number of arguments expected 1 got 0
  11. elmwood

    GML ds_priority_delete_max() returns 0 if the data structure is empty?

    Hellow, I seem to have inadvertently discovered that ds_priority_delete_max() returns 0 if the data structure is empty (and cleared beforehand using ds_priority_clear). Why does the function return 0 at all? Why not "undefined"? Could not find an answer in the documentation.
  12. L

    GMS 2 can i move objects in a room's instances layer in code

    I know you can change the order of which objects are layered on top in the room editor, but I want to be able to bring one behind another or back in front while the game is running. This way, the player walking lower on the screen appears to be in front always. I was reading into all the layer...
  13. A

    GMS 2 Deactivated instances and with statements

    Hi, I tried to find an answer to this but couldn't find it. Does with statement work with deactivated instances. Let's say an enemy has a variable hp and all the enemy instances get deactivated when they go off-screen, can I still find their hp with a with statement? If not, is there a way to do...
  14. OliverLugria

    Job Offer - General Hiring pixel artist and programmers

    Hello, my name is Oliver and I am in need of pixel artist and programmers for a new rhythm based rpg "Pulse". Combat is centered around inputting party commands in time with the background music along with many other music related mechanics. The first major goal will be to create a proper...
  15. P

    Drawing Circle Part of Sprite

    So hello everybody.My problem is tahat i want to draw circles(players in my football game) with many different sprite colors but my problem is that i also have some pointers around them wich are animated but i have it as one sprite with 2 layers( Circles itself and Pointer around it). So how to...
  16. M

    Need help being reflected/knockbacked from an object

    Trying to make a mechanic similar to Ori and the blind forest where the character can hold right click and after a certain amount of time be reflected/knockbacked to the same direction the mouse is facing. I got the timer to work but it shoots my character vertically. Looking for it to shoot...
  17. JohnSebek

    Gun equiping does not work properly

    So, I have created an inventory system, and it also switches guns. To make it more resource-friendly, I used the parent object for all guns so the inventory system just switches it up. But now, all the guns shoot the same as the first weapon player has in hand, and keep the same values such as...
  18. E


    I want the enemy ai to follow the player until the position it can hit but while the player is heading rights it works but unfortunately it doesn't function while heading left. here is my code: if State == enemyState.Playerseen{ if (can_see == true){ var lastPlayerPosition = inst.x...
  19. JohnSebek

    Dialouge system issue

    So I was making and dialogue system by Diest link here. And I´ve run into several issues I wasn't able to fix. There are many of my issues: Text is drawn in a very weird way so you are not able to see the modifiers and things will go insane 1. The text will display in a very weird way, it's hard...
  20. Bulldrome

    Object Angle Help

    Hello, I'm new to the forums and GMS2 in general so forgive my inexperience. So I'm currently having a problem with getting the angle of an object to work correctly. I'm trying to have this object, a shield, move around the player by using the directional keys. Up would set its angle to 90...