bug in aeColliding function in AE

Create fast, sprite powered games with Animation Engine, co-developed with DerBrill Software!

Moderators: heatherlaine, kevinmiller, robinmiller, malte

Post Reply
fm31
Posts: 22
Joined: Tue Apr 23, 2013 2:08 pm

bug in aeColliding function in AE

Post by fm31 » Wed Jul 17, 2013 2:37 pm

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

fm31
Posts: 22
Joined: Tue Apr 23, 2013 2:08 pm

Re: bug in aeColliding function in AE

Post by fm31 » Tue Sep 10, 2013 9:47 am

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

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1236
Joined: Sat Apr 08, 2006 1:10 pm
Location: Zurich
Contact:

Re: bug in aeColliding function in AE

Post by BvG » Tue Sep 10, 2013 2:12 pm

some people don't read the forums often :) I think the docu for AE also gives you an email address, no?
Use an alternative Dictionary viewer:
http://bjoernke.com/bvgdocu/

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany
Contact:

Re: bug in aeColliding function in AE

Post by malte » Wed Sep 11, 2013 10:33 am

Hi,

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

Best,

Malte

Post Reply

Return to “Animation Engine”