by frodo » Tue Apr 18, 2006 4:27 pm
have an actor without an animation. do create actor--> script editor:
xscreen=xmouse;
yscreen=ymouse;
VisibilityState("Event Actor", DONT_DRAW_ONLY);
right click on the invisible actor, and click new activation event, create actor, and select your player actor. in player actor, do a new event, activation event, from your invisible actor, and do script editor and enter this code:
angle=direction(x,y,invisible.x,invisible.y);
directional_velocity=6;
do add, collision a=on any side of the invisible actor, and enter this in script editor:
yvelocity=0;
xvelocity=0;
DestroyActor("invisible");
then create a filled region actor. in creat actor do follow mouse, both. then do mouse bothon down, left, create actor, invisible actor.
and do invisible actor don't creat at start up.
whew! I hope that works.