solved

  1. Bentley

    Looping Room and Scrolling Shooter Mix

    I am trying to remake a game like Fantasy Zone. The game is a scrolling shooter but the player can move right and left in a looping room. The background loops (the right side leads to the left side, and vice versa). Does anyone know how I can keep the player centered on screen at all times in a...
  2. Brenden

    Windows (Solved) Key Presses

    In my game if I press two keys at the same time, most likely the same step, only one of the key presses are registered. I have this code placed in one parent object and a slightly similar code in another parent object. Both parent object have six different children objects. ///placeing if...
  3. Bentley

    Script not changing the values of calling instance

    Hello. I have a script that receives a variable number of arguments. I want the script to reset every incoming variable to 0. Example script call reset(hspd, vspd, grav); Script ///reset(var1, var2, ...) for (var i = 0; i < argument_count; i += 1) { argument[i] = 0; } None of the...
  4. Bentley

    Animation trouble in between grid positions

    I've been messing around with a Pacman project. What should be the easiest part is giving me trouble. I want Pacman to animate as he moves. But if I press the right key once to move him one grid square, he doesn't animate. I think this is also true if I hold the right key down (he won't animate...
  5. C

    GMS 2 [SOLVED] Keyboard inputs fail using exported executable

    For some reason when I export my game from GMS 2 it is no longer able to receive inputs. It works fine when I compile and run the game from GMS 2, but when I export an installer and install and run the game, for some reason it doesn't detect keyboard input. It still detects gamepad input, which...
  6. Bentley

    Step Events: Handle input in the Step and Movement + Collisions in the End Step?

    I've been looking at a platformer engine. The engine gets the player's inputs in the Step and then applies changes to the player's x and y in the End Step: STEP h = (key_right - key_left) * move_spd; END STEP repeat (abs(move_spd)) { if (!place_meeting(x + sign(h), y, obj_wall)) x +=...
  7. A

    What data structures to use to store 3 values of 1 instance

    Hello everyone, I'm trying to recreate Guess the Logo game(more precisely part of it so far) https://play.google.com/store/apps/details?id=com.msi.logogame. So I create 4 instances (of object oABC which contains letters - 1 letter = 1 instance) at the start of the game. When I click on one of...
  8. Bentley

    sprite_create_from_surface gives a precise bounding box?

    Hello, I've been reading Ben Tyer's book, 100 Programming Challenges, and have been working on the destructible terrain challenge. I made a sprite the size of my room. It has a white background with green pieces of land throughout. I then created a surface, drew the sprite onto the surface, and...
  9. Bentley

    Using the Begin Step to give priority to one instance_change over antoher

    Hello, I've been working on a Street Fighter like project (just for practice, there's no way I can actually do it). I've come across a tricky problem. For example: "D" is to punch, but holding back for two seconds and pressing "D" is also how you shoot your special. To solve this problem, I...
  10. O

    Legacy GM Platformer Enemies

    How would i create platformer enemies that would face the player's direction and then move towards them? (By face the player's direction i mean either left or right.)
  11. T

    [solved] When I run the game it enters the main loop and doesn't continue

    when I hit run the compile window pops up and after loading stuff in it says this: **********************************. Entering main loop. **********************************. and stays like that. I have to get task manager and end the task manually. I don't know what caused it and I googled it...
  12. D

    GMS 2 (Solved) Need a Method for Dynamically Drawing an Unknown Number of Sprites

    Hello again, GM Community. I'm at another fork in development, where I'm trying to figure out a way to draw a 2D array of sprites. The problem I'm having is that the user/player will be able to choose the "map size" for the proc-gen I'm using, and I can't think of a method to dynamically "add a...
  13. W

    Game won't follow most recent instance of player.

    Hello all, ive been working with game maker about 6 minths and this is my first time posting on the forums so please forgive me for any misteps in posting I'm working on a game where when you die a body is left behind and the player is respawned at a designated point. What I have so far is...
  14. Bentley

    Keeping instance on obj_ground between sprite changes

    Hello. I've been working with some streetfighter-like sprites. As the character switches from one animation to another, it's very hard to get the sprite to appear where you want. For example, when going from idle to crouch, the crouch sprite goes into the ground a bit. I tried tinkering with...
  15. Andrew Hoyt

    SOLVED: Top-Down 3/4 Tile Depth Issue

    Can a tile change depths? Any recommendation to fix this issue? I want the player to be in front of the tile when below it, and behind the tile when above it. I tried the strip idea but the gun goes below it and breaks the illusion. Any idea on how to change the depth in a clean way? EDIT: I...
  16. Bentley

    Managing States in the Step Event

    Hello. I'm working on a state change where, when near an object, you press shift and your state changes from normal to hide. When hiding, I don't want the player to be able to move. The following code runs in the step event: //Normal state if (state == STATE.normal) { //Movement code goes...
  17. T

    Pixel Perfect Click Detection

    Hey guys. I've been relentlessly searching on the internet, but I haven't found any solution. As the title says, I want a pixel perfect click detection system. Ideally, for an object to be activated, it needs to be clicked on. This results in an inventory opening, or a machine turning on, et...
  18. F

    Tweening: should I snap values?

    Hello, I recently heard of tweening and I am trying to understand it better. If I'm correct, the start value will never actually reach the end value. It continually increases, but will do so infinitely. For that reason, should I snap the start value to the end value when they are close enough...
  19. F

    Scope of a locally declared ds_list created in a script

    Hello, I was studying a script by Rupeck called scr_instance_nearest_list. I had a couple questions. Summary: the script gets the ID of an instance, stores it in a list, deactivates that instance, and loops until there are no more instances. After, the deactivated instances are reactivated...
  20. Brenden

    Android Device Setup For Android

    So I am following the tutorial on https://goo.gl/LfF6b4 but when I try to play the game it cant find the device. I went back to the Device Setup For Android portion of the tutorial and on the CMD when I type adb get-state I get "error: no devices/emulators found" or when I type adb devices I get...
Top