Author Topic: Better way to detect players facing direction  (Read 1124 times)

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
Better way to detect players facing direction
« on: August 02, 2019, 07:03:03 PM »
Something like:
Code: [Select]
if player 1 facing = left
{
//Code
}
That would be cool and I need it for a thing. (Really I need it!)

I tried with:
Code: [Select]
if player 1 = face left
{
//Code
}
As that is a command, and all commands are thought to work with conditionals, I thought this would work. However, it doesn't work properly and commonly changes the direction of the player without I want it to.

Sorry because my English is not very good because I'm Spanish ;) :P

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Better way to detect players facing direction
« Reply #1 on: August 02, 2019, 07:28:42 PM »
I need that.

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
Re: Better way to detect players facing direction
« Reply #2 on: August 03, 2019, 09:08:13 AM »
Me too, or else no backflip
Hey, wassup wassup? My name is Warrior555MainsGanon (but just call me War) and I'm the main guy behind Megaman Zero Online and the upcoming Matt's Adventure! I don't speak often here but I'm a very friendly lad so if you wanna talk, don't hesitate!

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Better way to detect players facing direction
« Reply #3 on: August 03, 2019, 03:14:39 PM »
Me too. Or else, there won't be any box placing.