okay,ich habe jetzt immer "This Event" bei Koordinaten und beim Bewegen benutzt.
Gibt aber ein Problem:
Der 3. Held,also der 2. Folgechar bewegt sich total komisch,wenn sich der vorderste bewegt.
Siehe hier:
http://npshare.de/files/3b5d5c48/Mein%20Film.wmv
Und hier die COdes von Folgechar1 und Folgechar2:
- SCRIPT -
<> Comment:
: Folgechar wird unbemerkt auf die Pos.
: des Helden beim betreten gesetzt.
<> Change Variable: [10] = X position on map (tiles) of hero
<> Change Variable: [11] = Y position on map (tiles) of hero
<> Set Event Location: This event -> (V[10], V[11])
<> Comment: Koordinaten abspeichern
:
:
<> Label: 1
<> Move Event: This event, Frq 8, Pattern: Phas. mode on
<> Change Variable: [10] = X position on map (tiles) of hero
<> Change Variable: [11] = Y position on map (tiles) of hero
<> Change Variable: [12] = X position on map (tiles) of this event
<> Change Variable: [13] = Y position on map (tiles) of this event
<> Comment: Richtung abfragen und Koordinaten
: verändern
:
<> Fork Condition: If Hero is facing up then ...
<> Change Variable: [11] += 1
<>
: End of fork
<> Fork Condition: If Hero is facing down then ...
<> Change Variable: [11] -= 1
<>
: End of fork
<> Fork Condition: If Hero is facing left then ...
<> Change Variable: [10] += 1
<>
: End of fork
<> Fork Condition: If Hero is facing right then ...
<> Change Variable: [10] -= 1
<>
: End of fork
<> Comment: Wenn Koordinaten abweichen,Folgechar
: bewegen lassen
:
<> Fork Condition: If Variable [10] > V[12] then ...
<> Move Event: This event, Frq 8, Pattern: Phas. mode on, Mv right
<>
: End of fork
<> Fork Condition: If Variable [10] < V[12] then ...
<> Move Event: This event, Frq 8, Pattern: Phas. mode on, Mv left
<>
: End of fork
<> Fork Condition: If Variable [11] > V[13] then ...
<> Move Event: This event, Frq 8, Pattern: Phas. mode on, Mv down
<>
: End of fork
<> Fork Condition: If Variable [11] < V[13] then ...
<> Move Event: This event, Frq 8, Pattern: Phas. mode on, Mv up
<>
: End of fork
<> Comment: Sind die Koordinaten gleich,muss
: der Folgechar stehen bleiben
<> Fork Condition: If Variable [10] == V[12] then ...
<> Fork Condition: If Variable [11] == V[13] then ...
<> Move Event: This event, Frq 8, Pattern: Wait
<>
: End of fork
<>
: End of fork
<> Wait: 0.1 sec.
<> Jump To Label: 1
- SCRIPT -
<> Comment:
: Folgechar wird unbemerkt auf die Pos.
: des Helden beim betreten gesetzt.
<> Change Variable: [10] = X position on map (tiles) of hero
<> Change Variable: [11] = Y position on map (tiles) of hero
<> Set Event Location: This event -> (V[10], V[11])
<> Comment: Koordinaten abspeichern
:
:
<> Label: 1
<> Move Event: This event, Frq 8, Pattern: Phas. mode on
<> Change Variable: [10] = X position on map (tiles) of hero
<> Change Variable: [11] = Y position on map (tiles) of hero
<> Change Variable: [14] = X position on map (tiles) of this event
<> Change Variable: [15] = Y position on map (tiles) of this event
<> Comment: Richtung abfragen und Koordinaten
: verändern
:
<> Fork Condition: If Hero is facing up then ...
<> Change Variable: [11] += 2
<>
: End of fork
<> Fork Condition: If Hero is facing down then ...
<> Change Variable: [11] -= 2
<>
: End of fork
<> Fork Condition: If Hero is facing left then ...
<> Change Variable: [10] += 2
<>
: End of fork
<> Fork Condition: If Hero is facing right then ...
<> Change Variable: [10] -= 2
<>
: End of fork
<> Comment: Wenn Koordinaten abweichen,Folgechar
: bewegen lassen
:
<> Fork Condition: If Variable [10] > V[14] then ...
<> Move Event: This event, Frq 8, Pattern: Mv right
<>
: End of fork
<> Fork Condition: If Variable [10] < V[14] then ...
<> Move Event: This event, Frq 8, Pattern: Mv left
<>
: End of fork
<> Fork Condition: If Variable [11] > V[15] then ...
<> Move Event: This event, Frq 8, Pattern: Mv down
<>
: End of fork
<> Fork Condition: If Variable [11] < V[15] then ...
<> Move Event: This event, Frq 8, Pattern: Mv up
<>
: End of fork
<> Comment: Sind die Koordinaten gleich,muss
: der Folgechar stehen bleiben
<> Fork Condition: If Variable [10] == V[14] then ...
<> Fork Condition: If Variable [11] == V[15] then ...
<> Move Event: This event, Frq 8, Pattern: Wait
<>
: End of fork
<>
: End of fork
<> Wait: 0.1 sec.
<> Jump To Label: 1