To be more specific, the last spider created controls where all the spiders look. I believe the MMF2 engine performs actions on the last objects created first. I can reverse their behavior by putting the left spider on a higher layer. See figures 1 and 2.
Fig.1) Same layer, same row.
<SPIDER........Juni........<SPIDER
The right spider controls the initial direction for all spiders.
Fig.2) Same row, left spider on layer 7, right spider on layer 6
SPIDER>........Juni........SPIDER>
The left spider controls the initial direction for all spiders.
Fig.3) How I think it should work regardless of order.
SPIDER>........Juni........<SPIDER
Note: Juni has entered from the center top in these scenarios.
Here's the kicker, according to the KS source I think they should all look at Juni. I can't figure out why they don't. Here's the instructions that initialize spider facing. Note: When a spider is created it's flags are all off and it faces right.
If (X position of Player Character is < X position of Spider)
-- AND If (Flag Zero Of Spider is off)
----Then (set Spider direction to left)
If (Flag Zero Of Spider is off)
--Then (set Flag Zero Of Spider on)
According to my understanding of MMF2, the first expression should turn all the Spiders that are to right of Juni. The second expression acts on all the spiders. Afterward, Flag Zero is on so these expressions won't execute again.
This is becoming more of a question for the ClickTeam forums, I guess what I want to know is...
Is this a bug in the program, and should I fix it in my KS mod?
Edit: OMG! I replaced the line...
If (X position of Player Character is < X position of Spider)
with the line...
If (X position of Spider is > X position of Player Character)
and now it works like it should! I totally Hate you MMF2 with all my soul! I spent like 8 hours of my precious life figuring out that idiotic discrepancy!
... Anyway, I'm pretty sure Nifflas is done updating KS, do you guys think I should fix it in my mod?