Work like a charm! Thank you soooo much Kread-EX!
PS: I've also found and fixed a tiny bug my self...
Line 2499 should be
when 6 ; x, y = y , -x
PS.2:
An other bug which I have no clue.
According to the readme:
QUOTE
+---------------+
| set_direction |
+---------------+
Set the direction where the target character faces at.
Arguments:
1. Target - the character that will move it's sprite
0 - the user
1 - the character at the target tile
2 and above - the character at the the projectile tile n (for example,
3 will target projectile number 3, explained at command projectile_fire)
2. Direction - The direction to face.
-1 - Turn 90 Right
0 - Turn Back
1 - Turn 90 Left
2 - Down
4 - Left
6 - Right
8 - Up
10 - The user's direction
11 - character at target tile's direction
12+ - target at projectile(n - 10)'s direction (12 - proj.#2, 13 - proj.#3)
Syntax:
"ACTION_NAME" => ["set_direction", target, direction],
Example:
"TURN_BACK_USER" => ["set_direction", 0, 0],
The first 3 direction arguments, "-1, 0, 1" works fine.
When set to 2,4,6,8, like:
"FACE_UP" => ["set_direction", 1, 8],
Return "NoMethodError" at line 1004. "Undefined method `' for nil:NilClass"
When set to 10, like:
"FACE_SAME_AS_USER" => ["set_direction", 1, 10],
Return "ArgumentError" at line 2537. "Wrong number of arguments(4 for 1)"
However this is not a major issue as this function can be completely ignored without affecting gameplay.
So if you don't have time, feel free to ignore this post