object

  1. U

    GMS 2 A few questions

    Hi! 1) When i developing the game, i use some images, objects, instances. The volume of my graphics (images) will be about 100-200 megabytes. So i need to load it in my game. I created objects and place objects in my room. Now i need to load sprites. I see two ways. First - load all sprites...
  2. Shadowblitz16

    GMS 2 (SOLVED) changing x position not working

    does anybody know why I can't offset my player when I flip him? he flips he just doesn't change position. here is my code /// @description Link Step Event // You can write your code in this editor x = px; y = py; //Update Link Here. //Horizontal Collision hitbox_top = bbox_top //y -...
  3. U

    GMS 2 Loading screen

    There is a lot of objects, graphics, actions in my room. In theory. In many games i see loading screen. So when i need to do loading screen? And how can i do loading screen (any manual)? What will happend if i have lot of objects, graphics without such screen? Any lagging or incremental...
  4. D

    How best to imitate the decorator pattern? (attaching children)

    So here's the dilemma. I have a obj_collision which handles colliding with solid objects. It's children are things like projectiles, enemies, and the player. Only some of these objects need health, defense, etc. I don't want to make a parent with these attributes, because some projectiles need...
  5. J

    Define specific object when multiple instances of same object exist

    I am working on an enemy that I want to shoot a laser beam from itself to the player, which im doing using the draw event. I have the laser with the draw event as a different object that is created in the enemy object. The laser object draws a line from the enemy.x/y to the player x/y, but I...
  6. Lakko

    GMS 2 Object rotation with accelleration

    Hello, I'm working on a new game on android. I have an object (obj_player) that always rotate around a point (the middle of the room). At the start of the room obj_player have to rotate clockwise. CREATE EVENT image_angle = 0; r_speed = 2; r_speed_old = 2; image_xscale = 1; image_yscale = 1...
  7. K

    GMS 2 Persistent Objects' Layer Issue

    Hello, I have two rooms, one is a duplicate of the other with the exact same layers (name and depth), just different contents. The first room has the player (persistent object) in the "Player" layer and the second room has the same "Player" layer without the player object. I am testing by...
  8. A

    Collecting objects to move to next level

    Hi everyone, In my game, obj_chef must collect three different foods from each level before he can go to the next one. However, I am not sure how to do this. The three food objects are: obj_milo obj_weetbix obj_vegemite I have created a door to the next level and I want this door to be locked...
  9. C

    Destroying an object if another object is destroyed

    Hello. I am fairly new so I'm sorry if this is a stupid question. I have two objects relating to the same enemy, and I want it to be so that when object1 gets destroyed (which happens when its hp equals 0) object2 will get destroyed as well, but I can't quite figure out how. I though of using...
  10. U

    How to make a object that follows player?

    I can't seem to find a sollution to how to make an object around the player for a certain time (a bubble around player that last for 2 secs for example) when I click the right mouse button and make it follow the player. Probably very simple thing but not a simple thing for me. I'm using GML...
  11. A

    Use light to trigger events

    I am looking for a way to draw dynamic shadows/lights that can affect other objects, such as keeping enemies away or activating switches. I've tried looking for tutorials on such things for GMS, and at one point I found one for Unity. However, I feel much more confident in using GMS, as I've...
  12. C

    Clicking a set of objects and making another appear.

    I am very new to Game Maker and don't seem to find the right way to solve this: I have 5 objects in a room, and need another object (or text) to appear only after all 5 were clicked (as, per example, a clickable object to move to another room). What is the better way to do this?
  13. H

    Legacy GM Make spikes follow object

    Hi! I'm making these spikes which are supposed to follow this object as it goes up and down continuously. However, I can't seem to get it to work. Here is a picture of the current setup; The blue thing is my object, which is supposed to go up and down with spikes on the bottom and the top. My...
  14. R

    GMS 2 [HELP] Getting all instances of objects in object layer ?? [Solved (kinda??)]

    Hello, I'm working on an top down RPG. Ive gotten my depth and stuff sorted out but I've run into a problem. I want my collision to be untied to the tiles, that's why im using physics and objects as collision. You can see my problem in this screenshot: The blue marked part is one floor higher...
  15. T

    Question about Passing the interaction of an object to another

    While I'm trying to make a clicker game, i found out that 'set health' function does not have an option to pass this interation to another obejct. What I want to do is to click on the background to reduce the health of the monster. Wherever I click, monster gets damage. this is what i want to...
  16. mar_cuz

    GMS 2 [SOLVED]Checking for object parent problem

    Hi All, I have an issue checking for object parents. Say I have a sports team, all players have the same parent, oPar_BlueTeam. I'm using point_in_triangle to check for an instance of oPar_BlueTeam to kick the ball to, it only works when one blue team player doesn't have the same parent as the...
  17. S

    Why the object is not creating?

    Room Creation Code:: var i, file; file = file_text_open_read("level_1.lvl"); i = 0 ; while (!file_text_eof(file)) { object = file_text_read_string(file); // object name file_text_readln(file); object_x = file_text_read_real(file); // object x...
  18. E

    Legacy GM Dynamic object generation

    MAIN: I want "fields" to be crated along the "road" object. The "fields" should have no preset size and should be dynamic with a max size, and be automatically created along the side of the road. Those "fields" should be objects, or at least have an object that relates to them (one per...
  19. S

    Check if id of instances is a certain object

    I want to check if my oPlayer instance can see another instance (oInputable), without beeing blocked by all other instances, grouped under the object oNotInputable. Both of these objects are children of the oSolid object that makes them all solid for the Player. To check this collision I use the...
  20. M

    Problem when grabbing several items

    Hey everybody. My skills with game maker have been improving considerably, but I still have some doubts and I'll be very grateful if you help me. I've want to create items with which the player can "call" special strikes against the enemy. For example, the first item I made is for calling a...
Top