Trigger when facing p2

Started by hjk, January 03, 2013, 07:53:53 AM

Previous topic - Next topic

hjk

Well facep2 is a statedef and facing signifies what direction you're headed in so...

What's the trigger that detects when you're facing p2 or else when p2 is facing you?
LOL, Caddie's the man!! ;)

I'm as real as the runnin, I just happen to rap, Nigaas London, Japan, and i'm scared of dat tap.

I suggest extending my banning, cuz when I come back, it's gonna be hell. You think I was annoying before, oh man, it's on now :)
hjk vs. 99% of MFG. I will win.

RIP Poo Bear Tell my Dead Homie isson, for the year my partner.

Cyanide

facing != enemy, facing

Facing = 1 = facing right
facing = -1 = facing left

I am not accounting for simul because fuck simul.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

hjk

Yep. I just discovered this.
I need to know how to make a move trigger specifically when p2 is facing my char.

Thanks Cy.

Edit:
Wait. Are you saying it's:
enemy, facing?
LOL, Caddie's the man!! ;)

I'm as real as the runnin, I just happen to rap, Nigaas London, Japan, and i'm scared of dat tap.

I suggest extending my banning, cuz when I come back, it's gonna be hell. You think I was annoying before, oh man, it's on now :)
hjk vs. 99% of MFG. I will win.

RIP Poo Bear Tell my Dead Homie isson, for the year my partner.

hjk

LOL, Caddie's the man!! ;)

I'm as real as the runnin, I just happen to rap, Nigaas London, Japan, and i'm scared of dat tap.

I suggest extending my banning, cuz when I come back, it's gonna be hell. You think I was annoying before, oh man, it's on now :)
hjk vs. 99% of MFG. I will win.

RIP Poo Bear Tell my Dead Homie isson, for the year my partner.

hjk

Quote from: Cyanide on January 03, 2013, 08:06:32 AM
facing != enemy, facing
Damn it!

Okay, since this appeared to work, what's the notation for "not facing."
Tried a bunch of things, but I'm sure I got it wrong.

Tried:
Spoiler (click to show)
enemy, !facing
(enemy, facing) != 1
enemy, facing != 1
enemy, facing <= 0
(enemy, facing) <= 0
ifelse((enemy,facing),1,0)

LOL, Caddie's the man!! ;)

I'm as real as the runnin, I just happen to rap, Nigaas London, Japan, and i'm scared of dat tap.

I suggest extending my banning, cuz when I come back, it's gonna be hell. You think I was annoying before, oh man, it's on now :)
hjk vs. 99% of MFG. I will win.

RIP Poo Bear Tell my Dead Homie isson, for the year my partner.

hjk

Goddamn it!
Quote from: hjk on January 03, 2013, 08:09:04 AM
Edit:
Wait. Are you saying it's:
enemy, facing?
Nevermind. That didn't work. Crap.

LOL, Caddie's the man!! ;)

I'm as real as the runnin, I just happen to rap, Nigaas London, Japan, and i'm scared of dat tap.

I suggest extending my banning, cuz when I come back, it's gonna be hell. You think I was annoying before, oh man, it's on now :)
hjk vs. 99% of MFG. I will win.

RIP Poo Bear Tell my Dead Homie isson, for the year my partner.

Cyanide

facing = enemy, facing. will mean that you have your back turned to them, or they have their back turned to you.

p2dist X< 0
facing = enemy, facing

P2 is behind you and facing the same direction as you. You are not facing them

p2dist X> 0
facing = enemy, facing

P2 is in front of you and you are facing them, they are not facing you.



In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

hjk

Thanks Cy. There are a few situations where that didn't work, but those are very VERY few.

I'll call this one fixed. Thanks again.
LOL, Caddie's the man!! ;)

I'm as real as the runnin, I just happen to rap, Nigaas London, Japan, and i'm scared of dat tap.

I suggest extending my banning, cuz when I come back, it's gonna be hell. You think I was annoying before, oh man, it's on now :)
hjk vs. 99% of MFG. I will win.

RIP Poo Bear Tell my Dead Homie isson, for the year my partner.