question - code

  1. R

    GML Issue with collision_rectangle/collision_circle

    Hello, I am attempting to use an algorithm in my top-down shooter game that will essentially continually simulate possible x and y values to spawn an enemy in, and if deemed "acceptable" then the enemy will be spawned. I am using collision_rectangle (currently, I tried collision_circle before...
  2. R

    SOLVED Difficulties with 2-Dimensional Array

    Hello, I am attempting to utilize a 2D array for a top-down shooter game. Essentially I have a sprite-less object which is the "director" for the enemy spawning algorithm and I am wanting to initialize the array to store the "points" assigned with each unique enemy. Then I will assign a maximum...
  3. 1

    GameMaker Trying to draw the ds grid

    Hello, I am trying to create a leader board with a ds grid. here is the create event for my leader board object leaderboard = ds_grid_create(2, 3); ds_grid_set(leaderboard,0,0,"Tom"); ds_grid_set(leaderboard,0,1,"Jim"); ds_grid_set(leaderboard,0,2,"Adam"); ds_grid_set(leaderboard,1,0,10)...
  4. M

    HELP! Why am I getting errors on this if statement?

    It says it cant get the variable soldier.worth but before i tried this without the if and it could get the variable My code: if(money > soldier.worth-1) { instance_create(mouse_x,mouse_y,soldier); money -= soldier.worth; } Cant you do minus on a variable? Then how do I do this?? My error:
  5. DragonPup

    Finding all instances of a certain "type" that also have a specific variable VALUE?

    Hi folks, I'm re-working some things to use structs & constructors. I plan to create many "objects" via constructors that are POIs (points of interest) on my map. There are different types of POIs. One POI type may a be fishing spot, another may be an ore node. Different POI types may share...
  6. T

    Instance_find problem

    I want to get a unique identifier for objects in an array using instance_find, however the results are never correct. for context: "Enemies" is an array containing 6 accounts of randomly selected 2 objects, portrayed as variables 14 and 22. ex: Enemies[o] = 14, Enemies[1] = 14, Enemies [2] =...
  7. C

    Generating a maze I can control

    Hello gamemaker community! I am a rookie programmer and am getting into the mechanics of my first game. I am trying to develop a maze generation system similar to that of the game PacMan 256. A maze endlessly generates from the top of the screen and scrolls down. The player has to stay alive by...
  8. TWSICommunity

    The two new network_type_up and network_type_down don't exists in the documentation.

    I have never seen these two new network types before, what are they and what do they do exactly? Are they for the client or the server?
  9. T

    GML Checking place_meeting for multiple objects?

    Is there a streamlined way to check place_meeting for multiple objects? I'm currently using operators within an if statement (example below), but I suspect there is a better method. if(place_meeting(x , y, object1) || place_meeting(x , y, object2) ){ } Thanks in advance for any tips/advice...
  10. M

    how do i make the player flip in dnd

    ok so im making a platformer and i need to the player to flip when i press left or right (or how to make a second sprite thats reversed i tried using an external program but it removed the transparency and that won't work well obviously) specifically in dnd NOT gml
  11. R

    Two sprites have changed roles

    So I tried making a wall(obj_WALL) like this video said "GameMaker Studio 2: Complete Platformer Tutorial" and it worked wonders, but when I tried to put a second object the code broke(or I did something dumb) and the collision system only worked with that second object("obj_CHIMNEY") and when I...
  12. MatteKudasai

    SOLVED Help making W and S control my Aim

    So in my game the Player 1 (left) uses the arrow keys to move and mouse to control the aim so the Player 2 (right) will need move using WASD, i'm trying to make him able to control his Aim using W and S for up and down and created that green aim which is just a 100x13 with the actual sprite in...
  13. McJazzhands

    SOLVED Creating a group of active enemies that function as one unit

    Heya folks! I'm back with a question relating to Gradius once again. This time around, I'm trying to recreate the bean enemies you see when you start the game, shown below: What I'm aiming for is a group of identical enemies (A) that drop a powerup capsule for the player when the whole group...
  14. H

    Decimal point path speed not working?

    I'm making a train game with a randomly generated looping train track, along it there is a train object that uses path finding to loop the tracks. It was relatively easy to set up, but at some point, I decided to set my path speed to 1.5, since 1 was too slow and 2 was too fast for me to do...
  15. BabyBlue

    Sprite becomes unfocused as movement increases

    Hello All, I apologize if this is a frequent question, I've searched all over and can not find a solution. I'm hoping my eye sight isn't just going out of whack. Whenever I create an object and code any movement, the sprite becomes very jittery as soon as I increase the speed from the bare...
  16. G

    HTTP Request Issue

    Hello, I have written an API for submitting highscores to a database using Node.js and I have deployed it to the Google App Engine. The API recieves commands through HTTP requests and acts accordingly based on the information contained in the request. When testing the API locally on my machine...
  17. GargantulaKon

    How do I find sequence ID via Room Editor property name?

    I know I can use the following: var seqTest = layer_sequence_create("Assets_1", 100, 100, seqTest); var seqInst = layer_sequence_get_instance(seqTest); seqInst.speedScale = 0.1; But I want to be able to place sequences using the room editor since it's easier and faster. I can use a regular...
  18. Minerkey

    GML Methods of less-stuttery sprite prefetching?

    I've been using GMS2 for quite some time now, about 3 years now, and I've been trying to efficiently load sprites. I've gone from questionable methods like just loading every sprite at once with a huge block of sprite_prefetches, to loading each sprite one-by-one but I still seem to run into the...
  19. L

    State machine questione

    I am thinking about making a turn based shmup prototype. The idea is that everything including bullets do not move unless the player inputs a command. So I think how this would work is that there would be a global object that controls everything and each object reacts based on input. Am I...
  20. R

    [Question] Is it possible to mirror/flip a Sequence?

    Hello all, I'm current experimenting with Sequences, and I'm trying to figure out how I can have a Sequence mirrored or flipped during run-time for an Object (similar to a sprite flipped using image_xscale = -1). Doing so, the same movements would occur but in the opposite direction and sprites...
Top