Hey so I have been working on a pretty cool app with Corona using a lot of physics and touch exceptions. AKA if you touch one object while another is also being touched the results are different depending on the two objects. This is obviously pretty heavy on if statements but has been running fine thus far…until 268 update. Now on the emulator everything is fine but once on an Android device the touches are simply FUCKED. I am not the most organized programmer but i know the code works perfect on 243, no runtime or build errors and same with 268 on emulator, so I am just trying to figure out what has changed. I would be willing to email someone my source if needed…although it is a bit messy right now…you know how it goes. [import]uid: 19176 topic_id: 5524 reply_id: 305524[/import]
I don’t think we made any changes to the touch code on Android since 243. But please submit a simple reproducible test case to support@anscamobile.com and we can investigate it further.
[import]uid: 7563 topic_id: 5524 reply_id: 18774[/import]
Sent, thanks so much. [import]uid: 19176 topic_id: 5524 reply_id: 18821[/import]
I just thought of the fact that the new version may be using my multitouch emulation code wrong (2taps =1 touch) i am not at my computer but will test it later. I don’t think i would call it a problem in that case but definitely something others should be aware of if they are simulating multitouch this way and not commenting it out for device testing.
Sent via DROID on Verizon Wireless [import]uid: 19176 topic_id: 5524 reply_id: 18832[/import]
OK, I tested this and it is not the case.
What I can figure is somehow this piece of of code is no longer functioning correctly
– removes the touch object
function touch:endedCancelled( event )
if (touch.list:indexOf( touch ) == 1) then
img.bodyType = “dynamic”
touch.parentImg.touchList = nil
end
game:removeEventListener( “touch”, touch )
display.getCurrentStage():setFocus( touch, nil )
table.remove( touch.list, touch:indexOf() )
touch:removeSelf()
end
From the reaction I am getting it seems the touch.parentImg.touchList = nil code is not actually setting itself to nil. Thus when I check for this fact at another point in the game it returns false for all objects that have been touched before but are no longer being touched. IDK why [import]uid: 19176 topic_id: 5524 reply_id: 18860[/import]