YesNoOk
avatar

Side screen trigger (Read 6766 times)

Started by ultimatedude, August 27, 2007, 07:37:56 pm
Share this topic:
Side screen trigger
#1  August 27, 2007, 07:37:56 pm
  • ****
How can i make a trigger apply when the oponent hits the side of the screen, im trying to make an attack that hits p2 onto the side and he bounces off

No Borders, No Nations

Bea

Re: Side screen trigger
#2  August 27, 2007, 08:23:59 pm
  • *****
  • MUGEN Grandma
    • Brazil
    • www.smeenet.org
Given that the target is at a custom state:

trigger1 = abs(pos x) >= 159

Should do the trick. You may want test some other values other than 159 to achieve a better result. Personaly, I'd combine it with a const trigger to find the player width and subtract half of it from 159.

Also, consider taking a look on backedgedist and frontedgedist triggers. They're easier to use than the method above, but not nearly as fun. :P
Princess Adora: "My friend saw She-Ra take her dress off in the shower. She said she has an 8 pack. She said She-Ra is shredded."

SF2NES is dead. Long live SF2NES.