Object moves to mouse click location
Click the director movie and you will see the object will move to the mouse click location.
Download File: Object moves to mouse click location.dir
(Right click and select save target as) ![]()
Click the director movie and you will see the object will move to the mouse click location.
Download File: Object moves to mouse click location.dir
(Right click and select save target as) ![]()
In adobe director, to get the angle between 2 points is not difficult.
Try this code:
on getangle
pt1= point(100,100)
pt2 = point(100,20)
sl = pt2 - pt1
myangle = atan(sl[2],sl[1]) * 180 / pi
put myangle
end

Most of the time, we use the function “append” in list.
–
on beginsprite me
list = []
list.append(”A”)
list.append(”BBB”)
end
–
Then the result of list will be ["A","BBB"]
However, director text member also support append function.
–
on beginsprite me
member(”mytext”).text = “”
member(”mytext”).append(”123″)
end
–
The text of member(”mytext”) will become “123″. This is useful if you use it with “repeat with” function.