facing

  1. A

    GMS 2 Do you need to make two different sprite arrays if you have an asymmetrical character?

    Hello all, I recently got my state machine working with a sprite array, however, I come to a bit of an obstacle, my character is asymmetrical and that design choice is a large part of the game's story. So conceptually speaking, is there a better way to mirror an asymmetrical sprite ? As far as...
  2. brinycann0nade

    SOLVED Four directional facing in a Zelda 1 type game

    I have sprites with four facing directions, up right down left. I want them to be set when an instance is moving in those directions. This kind of code has a problem: if yprevious > y {objFace = facing.up}; if yprevious < y {objFace = facing.down;} if xprevious> x {objFace = facing.left;} if...
  3. S

    GML How to get bullets to shoot in direction character is facing? [SOLVED]

    Hi, I'm completely new to GMS2 and GML/coding. I've been following Shaun's platform tutorial and managed to change the code a bit so the bullets only shoot in the direction the character is facing (because I don't want my game to use the mouse). I found that specific part of the code online and...
  4. K

    GML Asymmetrical Sprite Facings

    I've got a sprite set up that's asymmetrical; the character is in a space suit that has different badges on their left and right arms, and a name tag that's on the left side of their chest. So far, I've figured out some code that makes the sprite facing change according to the character's...
  5. T

    "Facing" Issues

    Hi, everyone. I am currently working on a state machine for my platformer, and have a problem with how I do animation. Need some help. I have a pretty basic state machine set up based on script calls and a step event switch. I decided that I wanted to implement "facing" for my player character...
  6. M

    distance_to_object - Help Me Understand *SOLVED*

    Hello, I have written a script for my npc's to make them always face the player by using the built in function "point_direction". I am happy with how this works but now I want them only to face the player when he is in a specific range to them. I use "distance_to_object" for this and that also...
  7. V

    Getting a variable from one of multiple objects

    Hello, I'm adding knockback effect to my character and for now at least I'm using the direction the enemy is looking to determine the direction the character will be sent by the knockback. The problem is that, having multiple of the same enemy object in the room, the variable will be called...
  8. B

    Auto Facing Sprites (RTS)(GMS)

    I'm currently making an RTS (Real Time Strategy) game and i'm having trouble knowing how to make the sprites face the left or right in which they're going. You can place an object called goto they will travel to it and stop when they touch it. I would like to know how to make the sprite index...
Top