1 - you can use the method actor.SkipTo(Pos X, pos Y); Put this in the scene_init.script of the scene where you need to place the actor. if depend of the position on the scene before, you can use global variables... you can declare this on base.script with reserved word "global" and then you can use this variables in all the scripts of your game.
For example: if you have two entity doors in a scene called room, in the door1.script you put something like this:
on "LeftClick"
{
output="door1";
Game.ChangeScene("Scene2.scene);
}
in the door2.script:
on "LeftClick"
{
output="door2";
Game.ChangeScene("scene2.scene");
}
in base.script:
global output;
and in scene2_init.script:
switch(output){
case "door1":{
actor.SkipTo(pos x1,pos y1);
break;
}
case "door2":{
actor.SkipTo(pos x2,pos y2);
break;
}
}
2 - this is more complicated, you must to create a script, and attach to scene where you like to move your actor while press LeftClick. In this script you put something like this.... To attach the script, go to scene edit, click on properties and clic on Scripts button, here you can create a new script for the scene.
var IsMoving=false;
on "LeftClick"
{
IsMoving=true;
while(IsMoving){
actor.GoTo(Scene.MouseX, Scene.MouseY);
Sleep(2);
}
}
on "LeftRelease"
{
IsMoving=false;
}
Recommendation: read the wme book online
http://res.dead-code.org/doku.php/wmebook:start this help me a lot at start with wme