progamming

  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. L

    Need help with this error

    The error is number of arguments expected 1 got 0
  9. 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.
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. E

    GMS 2 NEED HELP WITH ENEMY AI

    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...
  17. 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...
  18. 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...
  19. G

    Creating a save/load system..

    Alright, so i'm gonna come right out and admit it, i am no coder. I am not a math guy. As such, i find myself enjoying to make games while using the drag and drop system. However, i started to work on a bigger more complex game and decided i wanted to have a save progress sort of system. My game...
  20. D

    Legacy GM How to stop sprite from shaking when following the player object?

    I have an object set up to specifically follow the player object around my game and for some reason the follower object is always shaking when it follows the player and when the player stops moving. If anyone could help me figure out why it keeps doing this and to solve this issue I would be...
Top