• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

code

  1. 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...
  2. D

    GameMaker So im rather new to gamemaker and im trying to make a boss

    How should i tackle developing a boss, I have no issue making little slime like enemies with no attack animation but I need some guidance on how to make a boss that can switch sprites for an attack. my main stump is, how do I make the boss switch from a chase state to an attacking state when...
  3. R

    GameMaker Multiple Object collision possible?

    Hey yo! I've searched through the forum but couldnt quite find a fitting solution for my problem. I hope one of yall can help me: I am making a simple 2D Platformer on GMS 2. I wrote a code, so if the player gets near "Obj_Block_1" the Player collides with the Object. In other terms it becomes...
  4. 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...
  5. F

    Problems with the walls

    Please I need some help. When I jump touching the wall, my character flies sliding and I don't know why. Looks like the wall has soap.
  6. VerdeBoss

    Slope inconsistency

    So I'm having a little problem about my slope inheritance code where players y position will follow through the assigned formula from each slope instances it collides on When the player follows through the terrain, player will get interrupted by issues such as "jumping five pixels up" upon...
  7. E

    SOLVED Problems with a code

    Hello, i speak spanish so my english is very bad,i have a problem, i wanna make a shooter game and i cant. Because "instance_create" its variable and not a function. i see tutorials and forums, and they have "instance_create" in orange. Hola, hablo español así que mi ingles es bastante malo...
  8. A

    Object Sprite Direction Tutorial (8 Directions)

    GM Version: Studio 2 (Possibly later versions of Studio 1) Target Platform: Any Download: None (Code below) Links: round(), point_direction(), switch, sprite_index, image_speed Summary: Hello all I'm going to show you how to change your Object's sprite, based on direction. It all starts...
  9. A

    Easy Enemy AI (Idle, Chase, Attack, and Flee)

    GM Version: Studio (All) Target Platform: Any Download: None (Code below) Links: Example gif of the code below: https://alaskaminds.org/2020/02/11/game-maker-easy-enemy-ai-idle-chase-attack-and-flee/ Summary: Hello All! I'm going to show you how to create an enemy object that will Idle...
  10. Christopher A. Orestis

    Not collision with var = Do something...

    Hello, I would like to know how do the following: (This script is not working, would like to know how to fix this) /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// var...
  11. L

    Ds_Grid Help

    I don't know a whole lot about ds grids but found this awesome inventory system that uses ds grids, well to remove items from the inventory you run this script. [ //If there's only 1 item in the inventory if(ds_grid_height(playerInventory) == 1) { //Only 1 item in inventory...
  12. sinigrimi

    Discussion No code displayed on docs.yoyogames

    how can I make it so that I see the code in the browser (google chorme), copying and pasting each time for character recognition is very exhausting. Thanks in advance!
  13. M

    Persistent arrays of object instances without adding to layer

    I'm coming at GML from a C++ background, and I want to have some global state to represent my player character, their inventory etc in an RPG game I've started. I really want to know whether it's possible to create an "array of structs / objects", similar to the following (C++): struct Item {...
  14. sinigrimi

    GameMaker [solved]One more question

    This is a create event and when I run the compiler it says that room_type is not set. also if I directly insert a digit into the argument field, the code works. var room_type =5;//irandom(559); case"fixed": // if (up == true) and (bottom == false) and (left ==false) and...
  15. sinigrimi

    GameMaker Is there a way to shorten the code?

    Hello! I have 560 ready rooms for the test rooms for the player (this is only at the first level, LOL), but to enter them as the example below seems to be hell. Is there a way to speed it up or will you have to spend a lot of time? I also have a fork between the scripts, it will not affect the...
  16. sinigrimi

    GameMaker [SOLVED] I have problems with sequence and placement of code

    I create a roguelike. When I enter a new room, the doors are closed, enemies are generated, and when I kill them with oBullet (in the code for colliding oBullet with oEnemy_par it says that if the enemy has hp <= 0 instance_destroy, and then if (! Instance_exist (oEnemy_par)) { the doors open})...
  17. M

    Path Finding

    hey guys, so what im needing help with is that i want my player(s) on screen to move where i click, however i want the game to find the shortest distance to where i clicked while avoiding obstacles in the way. For example, lets say i have a building and a doorway to go through, i want to be...
  18. U

    Menu, character screen, game logic (o_Player)

    Доброго времени суток, товарищи. = GMS 2 = использую и у меня возник такой "новичковый" вопрос. Посмотрел приличное количество видеоуроков, касается Shawn Spalding и HeathBeast и не только, сделал с их помощью этот скелет, но, к сожалению, у них нет этой темы видеоуроков ( да и не особо...
  19. M

    GameMaker questions about collision_line

    now I use this command in this way if !collision_line (enemy_obj.x, enemy_obj.y, object_player.x, object_player.y, object_wall, true, false) { further a long code so that it follows the player } it only works on 1 enemy, only 1 enemy reacts to me, and thus, when he sees me, he launches a...
Top