Page 1 of 1

bug in aeColliding function in AE

Posted: Wed Jul 17, 2013 2:37 pm
by fm31
Hello

after many tests, j found a bug in the "aeCollidingObjects()"

this is the current code of this function
----------------
function aeCollidingObjects
local tObjects,tReturn
repeat for each key theKey in aeCollisionListener
repeat for each line theLine in aeCollisionListener[theKey]
if intersect(theKey,theLine,"pixels") then
put theLine&cr after tObjects
end if
end repeat
delete char -1 of tObjects
put tObjects into tReturn[theKey]
if tReturn[theKey] is empty then delete variable tReturn[theKey]
end repeat
return tReturn
end aeCollidingObjects
--------------

if you look at the local variable tObjects, you can see that this variable is not initialized for each loop of the first repeat ("repeat for each key theKey in aeCollisionListener") and then
if you are watching for 2 objects, if the first one has a collision, it is written in the tObjects but after if the second object has no collision, normally, tObjects would be empty but it wrong because it is not initialize and keep the value from the first object ....

Then if it is possible to have a correction for that thanks because J need to use AE (and I have paid it)

Fm31

Re: bug in aeColliding function in AE

Posted: Tue Sep 10, 2013 9:47 am
by fm31
I m very surprise that I hadn't any answer about my last post for the bug in aecolliding function ...

do we have a pilot on board ??

Fm31

Re: bug in aeColliding function in AE

Posted: Tue Sep 10, 2013 2:12 pm
by BvG
some people don't read the forums often :) I think the docu for AE also gives you an email address, no?

Re: bug in aeColliding function in AE

Posted: Wed Sep 11, 2013 10:33 am
by malte
Hi,

actually this post slipped through for me. I should be able to upload a fixed version pretty soon.

Best,

Malte