YesNoOk
avatar

[SOLVED] facing.. whaat? O_o (Read 487 times)

Started by Maistral, July 14, 2011, 11:35:15 am
Share this topic:
[SOLVED] facing.. whaat? O_o
New #1  July 14, 2011, 11:35:15 am
  • avatar
  • **
  • Whatever.
what is the trigger tag to be used to detect if the helper is facing the enemy or not?

i tried using

trigger1 = facing = -1

and yes, it only works if I am facing this direction : >>>>>>>>>>>>>>>>>>>>>

if i face this direction: <<<<<<<<<<<<<<<<<< ; it no longer works.


MUGEN CHARACTERS
Sabaku no Temari [100%] = RELEASED!
Akasuna no Sasori [100%] = RELEASED!
Namikaze Minato [5%] = ON HOLD
Uzumaki Naruto [5%] = Coding basic attacks

Last Edit: July 21, 2011, 11:44:31 am by temaridaikamaitachi
Re: facing.. whaat? O_o
#2  July 14, 2011, 11:50:05 am
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
Re: facing.. whaat? O_o
#3  July 14, 2011, 06:56:58 pm
  • avatar
  • **
  • Whatever.
which one should i place then? there are so many tags here - there's this enemy tag, but how do i place it?

trigger1 = facing != enemy doesn't work >.>

trigger1 = facing != target doesn't too..


MUGEN CHARACTERS
Sabaku no Temari [100%] = RELEASED!
Akasuna no Sasori [100%] = RELEASED!
Namikaze Minato [5%] = ON HOLD
Uzumaki Naruto [5%] = Coding basic attacks

Re: facing.. whaat? O_o
#4  July 14, 2011, 07:06:58 pm
  • ****
  • HAHAHAHAHAHAHAHA
    • Chile
I assume your helper is striker type helper and not a projectile based one.

You may want to use facep2 = 1 in the state definition. It makes your helper face enemy as soon it enters that state.

Don't know is this helps you. Is there something that you want to do aside from this? Ask.
Re: facing.. whaat? O_o
#5  July 14, 2011, 11:01:13 pm
  • ****
  • Target Acquired.
    • Ukraine
    • mugencoder.com
Quote
trigger1 = facing != enemy doesn't work >.>

trigger1 = facing != target doesn't too..
Facing returns either 1 or -1
enemy and target do not return integers. That's why it's not working. Read up more in the documentation about redirection (as stated by Rajaa) and the facing trigger.

-[Все слова это только слова.]-
Re: facing.. whaat? O_o
#6  July 15, 2011, 10:46:29 am
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
Yeah, that's not how redirection works. I even posted a link that provides a decent example. Read it.
Re: facing.. whaat? O_o
#7  July 16, 2011, 09:23:49 am
  • avatar
  • **
  • Whatever.
@Rajaa
I have read it on it's entirety already, and i have re-read it again. and I find nothing of help from it, obviously. That's why I'm asking here, isn't it? Otherwise I wouldn't have to waste time here asking..  ::)

@all
anyway, it's like this. the attack comes from a helper, which in turn spawns helpers as projectiles.

so, this helper can float in the midair. if i do that helper-projectile spam attack, i wanted it such a way that if the helper... bah, just see the screens. they'll explain it better.










any insights, guys?


MUGEN CHARACTERS
Sabaku no Temari [100%] = RELEASED!
Akasuna no Sasori [100%] = RELEASED!
Namikaze Minato [5%] = ON HOLD
Uzumaki Naruto [5%] = Coding basic attacks

Re: facing.. whaat? O_o
#8  July 16, 2011, 09:34:22 am
  • avatar
  • **
  • Whatever.
note that:
1) the Kazekage is locked on facing the same direction (where the target was) as long as the Satetsu Shigure attack is in full effect
2) the Kazekage (when idle) is always facing the enemy


MUGEN CHARACTERS
Sabaku no Temari [100%] = RELEASED!
Akasuna no Sasori [100%] = RELEASED!
Namikaze Minato [5%] = ON HOLD
Uzumaki Naruto [5%] = Coding basic attacks

Re: facing.. whaat? O_o
#9  July 16, 2011, 10:45:42 am
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
So you don't see the 5 + (parent, time) example? That's how all redirection triggers work.
Re: facing.. whaat? O_o
#10  July 18, 2011, 06:34:45 pm
  • avatar
  • **
  • Whatever.
obviously, i could not comprehend it. if i did, i won't be asking here anymore, wouldn't I?



MUGEN CHARACTERS
Sabaku no Temari [100%] = RELEASED!
Akasuna no Sasori [100%] = RELEASED!
Namikaze Minato [5%] = ON HOLD
Uzumaki Naruto [5%] = Coding basic attacks

Re: facing.. whaat? O_o
#11  July 19, 2011, 12:19:21 am
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
[redirection trigger], [any trigger besides another redirection trigger]

I don't see how the docs doesn't give it away. Think harder.
Re: facing.. whaat? O_o
#12  July 19, 2011, 10:50:14 am
  • avatar
  • **
  • Whatever.
can you sir give me another example? my brain's going to blow if i read this again for the fifth time.. perhaps a simpler example, such that I can work on a format. thanks


MUGEN CHARACTERS
Sabaku no Temari [100%] = RELEASED!
Akasuna no Sasori [100%] = RELEASED!
Namikaze Minato [5%] = ON HOLD
Uzumaki Naruto [5%] = Coding basic attacks

Re: facing.. whaat? O_o
#13  July 19, 2011, 12:05:06 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
The redirection trigger checks if a trigger is true for an entity that is not from the player using the redirection trigger.

Parent, time detects the time of a helper's parent. Parent, stateno detects the state number of a helper's parent. Apply that to the redirection trigger you need. This is really simple.
Re: facing.. whaat? O_o
#14  July 20, 2011, 05:25:42 pm
  • avatar
  • **
  • Whatever.
i think we are talking about different things.

let me rephrase my question, sir.

what is the tag for me to be able to return a "YES" or a "NO" in a facing-type of trigger?
(ie. if trigger1 = *facing enemy* = yes, then triggers)

i researched on this facing tag again, and it seems that facing = -1 triggers if the player is facing left of the screen, and facing = 1 does otherwise.

please, do not tell me to read the "ENEMY REDIRECTION TRIGGER" blah blah again, I am using this actually for making the puppet move.

it's just, apparently, we are talking about different things..

helper(43522), facing = -1 or parent, facing = -1 does VERY VERY much the same as what i have now (facing = -1) because all it can detect is "if the player is facing left, then trigger goes boom". I don't need to detect left or right facing, what i need to detect is a Yes or a No.


MUGEN CHARACTERS
Sabaku no Temari [100%] = RELEASED!
Akasuna no Sasori [100%] = RELEASED!
Namikaze Minato [5%] = ON HOLD
Uzumaki Naruto [5%] = Coding basic attacks

Last Edit: July 20, 2011, 05:29:22 pm by temaridaikamaitachi
Re: facing.. whaat? O_o
#15  July 20, 2011, 05:38:08 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
Ifelse.
Re: facing.. whaat? O_o
New #16  July 21, 2011, 11:27:59 am
  • avatar
  • **
  • Whatever.
nvm sir, after playing a little bit with it, i got it correctly now

trigger1 = p2dist x < 0 && facing = -1 || p2dist x < 0 && facing = 1

thanks


MUGEN CHARACTERS
Sabaku no Temari [100%] = RELEASED!
Akasuna no Sasori [100%] = RELEASED!
Namikaze Minato [5%] = ON HOLD
Uzumaki Naruto [5%] = Coding basic attacks

Last Edit: July 21, 2011, 11:42:42 am by temaridaikamaitachi