hi
I made one player movement script,
and save it 4 times with each character names, and set the player action under each script - action character name ()
I can select each character with the mouse,
but I also want to select when clicking on a button.
I try this code to select just 1 character, but I just keep getting this message when I run.
engine crash in player1_click.
here is the code.
function player1_click()
{
player = my;
my.emask |= ENABLE_CLICK; // lite-C
my.event = player1_select;
}
action player1_select()
{
if (player == my) {return;} // don't make the switch if the actual player is clicked again
player = my;
camera.pan = my.pan; // start with a proper camera orientation
}