Author Topic: Check the players direction in Gamemaker Lite?  (Read 2626 times)

RandomFangamer

  • Cherry Eater
  • Posts: 71
  • Pico Pico Piiiiiii
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Mozilla compatible Mozilla compatible
    • View Profile
  • Playstyle: Keyboard
Check the players direction in Gamemaker Lite?
« on: May 02, 2015, 03:15:03 PM »
Hello,
In my fangame I have an object which the player can throw to break blocks.
However, the player can only throw the object in one direction.
What I want to do is have the object get thrown in the direction the player is facing. (left or right)
Is there any way to check which way the player is facing?
Thanks,
RandomFangamer




:ItsBoshyTime: o o o o o :denProgress: o o o o o :paraKid:

YoSniper

  • Awexome
  • Global Moderator
  • Spike Dodger
  • Posts: 142
  • People regard me as a programming overlord.
  • OS:
  • Linux Linux
  • Browser:
  • Chrome 42.0.2311.111 Chrome 42.0.2311.111
    • View Profile
    • My YouTube
  • Playstyle: Keyboard
Re: Check the players direction in Gamemaker Lite?
« Reply #1 on: May 02, 2015, 03:24:05 PM »
Hello,
In my fangame I have an object which the player can throw to break blocks.
However, the player can only throw the object in one direction.
What I want to do is have the object get thrown in the direction the player is facing. (left or right)
Is there any way to check which way the player is facing?
Thanks,
RandomFangamer
player.image_xscale. It's 1 when facing right and -1 when facing left.
I don't traverse the forums as much anymore. Follow me on Twitter if you want to keep tabs on me!

Twitter: @YoSniperGames
Twitch: yosniper

Streams happen whenever I feel like it.