2 problems

Started by hamza, June 12, 2012, 01:07:34 PM

Previous topic - Next topic

hamza

1)how to make p2 face p4?
2)i have a move that summons lot of helpers (32) that have the same id so i used a trigger1 = helper(id),movehit
and it gives me a bug saying "has no helper **" how do i remove him?

my webpage
www.csmugen.ucoz.com

Rajaa Retired

How to have p2 face p4?


turn
Tall = numpartner
Tall = partner,id > id ; because p3's and p4's ids are always greater than p1's and p2's respectively.
T1 = (partner,pos x - pos x) * facing < 0 && facing = partner,facing ; check if p4 is behind player 2 or if they are both facing the same direction. Only one is needed, really, probably the former.





The flow of Mugen is triggerall, trigger1, trigger2, etc. Any trigger or parameter that uses redirection triggers should first check if the object that is being referenced exists. That is to prevent errors from showing up in the debug.

For example:

This is wrong since mugen reads the whole line of code:

trigger1 = numhelper(id) >= 1 && helper(id),movehit

This, however, is right and will check if the helper exists first before trying to execute the subsequent triggers:


trigger1 = numhelper(id) >= 1
trigger1 = helper(id),movehit