relative

  1. A

    Legacy GM Help using draw_sprite with relative coordinates.

    Anytime i use draw_sprite using relative coordinates such as: "draw_sprite(sprite,0,x,y);" The sprite will become displaced as the object moves, but i want the sprite to stay fixed relative to the object, and the problem is even further amplified when dealing with views in a room. Is there any...
  2. E

    Legacy GM [Solved] Bullet spawns at wrong position

    In my case i dont have a bullet, but an paper wad. The wad spawns at the wrong place. (I sped up the throw speed to show all the wads flying). This is my code: Origin: X:14 Y:18 Create event: Lenx=20; Leny=20; Step event: instance_create(x + lengthdir_x(Lenx,image_angle), y +...
  3. B

    Life Deduction

    In Game Maker 8, I set my avatar 3 lives(Create Event), and every time he collides with an enemy, he's deducted a life, by using the action set lives relative to -1. However, whenever I collide with an enemy, I immediately die. What's wrong?
  4. jobjorgos

    Legacy GM [SOLVED] always show object on top of other object which has relative depth

    Hey I want obj_boots always be shown on top of obj_peg (the player) in a 2d top-down (fake 3d perspective) game. obj_boots Step Event: depth = (obj_peg.depth + -1); But this doesnot work so I wanna make sure if anybody can confirm if this piece of code is right? Greetz jobjorgos
  5. C

    turret locations [SOLVED] targeting [NOT SO MUCH]

    Hi guys. Here's the situation. Question 1: I've got an instance of a naval vessel. It creates a turret at x,y (which is a point inside the sprite). The vessel rotates so that it is always facing the direction of motion. (sprite rotates 360 degrees in 180 frames, during the step event...
  6. V

    direction+5?

    Hello, you know how you can for example make instance_create(x+5,y,obj_test) Is it possible to make +5 for direction, to be 5 pixels in front of the direction of player. If yes, how? Thank you!
  7. S

    Making bullets move at speed relative to the player

    I cannot find anywhere for a way of making projectiles move at speed relative to the player game maker so if the player is moving fast to the right and the player fires to the left, the bullet will move slowly to the left and if the player fires to the right, the bullet will move even faster to...
  8. R

    Help with coding if a variable is relative

    Hey, I've been using Game maker for a while, and I've begun to develop practice games and such. So far, I have made a health system that uses purely code. I know that it is a little weird to not use the feature of drag and drop, but is there a way to make a variable relative or not through...
  9. S

    Legacy GM Text Boxes Relative to Views Help (SOLVED)

    EDIT: I could try and provide a video of it if that would help. EDIT2: How do I format code in this forum? Sorry for bugging you guys... Also I'm using (according to the title of the app) - GameMaker: Studio Standard Edition (v1.4.1757). Also the code is in the GML. But I'm doing some text...
Top