Animation engine: Memory leak
Posted: Tue Mar 17, 2015 7:17 pm
Hello,
I am using animation engine in my code to move objects, but after some time the movement slows down. Why? Here is the code
or just from aeMoveTo
I am using animation engine in my code to move objects, but after some time the movement slows down. Why? Here is the code
Code: Select all
on moveButton
aeSetFrameRate 50
if isMoving is true then
if lStage is 13 then
set the movePolygonal["pointList"] of button("mover"&lStage) to the points of graphic ("Path"&myArr[lStage])
set the movePolygonal["step"] of button("mover"&lStage) to 13
put 1 into lStage
else
set the movePolygonal["pointList"] of button("mover"&lStage) to the points of graphic ("Path"&myArr[lStage])
set the movePolygonal["step"] of button("mover"&lStage) to lStage*2
add 1 to lStage
end if
send "movePolygonal" to button ("mover"&lStage)
send "moveButton" to me in 3 milliseconds
end if
end moveButton
Code: Select all
aeMoveTo the long id of grp("bubble "&x), myxLoc,-50,x*2000