Author Topic: REQUEST Direction decetion  (Read 1417 times)

YoshiMario2000

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
REQUEST Direction decetion
« on: August 23, 2015, 09:10:54 pm »
Can you add a function for On_direction change and the ability to detect the direction that the npc/enemy change. So for things that have uneven directions like 8x16 or 16x32.
This signature was way too long before, but now it's short!
Also, I am Still Alive!
On ad Off I go!

Do you ever get the feeling that the fandom of a product(s) ruin the potential that you could have had to enjoy the product?

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1172
    • View Profile
Re: REQUEST Direction decetion
« Reply #1 on: August 23, 2015, 09:30:05 pm »
You mean the direction of a sprite or the direction of a movement?

YoshiMario2000

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Re: REQUEST Direction decetion
« Reply #2 on: August 23, 2015, 11:07:54 pm »
both.
Edit:
I want to be able to set a direction WITHOUT using randomization.
And Detect if a sprite is facing N/E/S/W
« Last Edit: August 24, 2015, 01:58:11 am by YoshiMario2000 »
This signature was way too long before, but now it's short!
Also, I am Still Alive!
On ad Off I go!

Do you ever get the feeling that the fandom of a product(s) ruin the potential that you could have had to enjoy the product?

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1172
    • View Profile
Re: REQUEST Direction decetion
« Reply #3 on: August 24, 2015, 10:01:19 am »
For sprites you have the event sprite:on_direction_changed().
For movements, you have the event movement:on_changed(), and the event entity:on_movement_changed().