I will also point out that in your scripts you need to make sure you are using the player keyword to refer to the player, not cEgo. I have seen many people use cEgo and player interchangeably. cEgo is just the default name of the first character, and can be renamed to whatever you want. player only refers to the current player character, whichever character that might be.
Code: ags
Code: ags
// on_mouse_click
// ...
else cEgo.Walk(mouse.x, mouse.y); // move the player (WRONG, this ONLY moves cEgo!)
// on_mouse_click
// ...
else player.Walk(mouse.x, mouse.y); // move the player (RIGHT, this moves the player no matter which character is being controlled)