News:

MFG's Character of the Month: September 2026 Voting

Main Menu

Side screen trigger

Started by ultimatedude, August 27, 2007, 07:37:56 PM

Previous topic - Next topic

ultimatedude

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

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.