Hello again!
I tested in android and found bad bug in “Collision”.
If i testing in Simulator, all work okay, but if i testing in Android, i have this:
- First i first chat go to second char and detect collision, this part work how need. (https://lh4.googleusercontent.com/-Re6eGDW6Svk/UQ-LS1mzCKI/AAAAAAAAJPs/fn0hKJO4zTM/s901/2013-02-04)
- I click another point, where no have object, but char not moving and detect collision?!
https://lh3.googleusercontent.com/-JnYW_ypv9mA/UQ-LYGzlMgI/AAAAAAAAJQA/OM4qZO52FF8/s901/2013-02-04
Log:
I/Corona (15731): -------------------
I/Corona (15731): detect postcollision
I/Corona (15731): getting Point...
I/Corona (15731): transition worked
I/Corona (15731): -------------------
I/Corona (15731): detect postcollision
I/Corona (15731): getting Point...
I/Corona (15731): transition worked
I/Corona (15731): -------------------
I/Corona (15731): detect postcollision
I/Corona (15731): getting Point...
I/Corona (15731): transition worked
I/Corona (15731): -------------------
I/Corona (15731): detect postcollision
I/Corona (15731): getting Point...
I/Corona (15731): transition worked
I/Corona (15731): -------------------
I/Corona (15731): detect postcollision
I/Corona (15731): getting Point...
I/Corona (15731): transition worked
I/Corona (15731): -------------------
I/Corona (15731): detect postcollision
I/Corona (15731): getting Point...
I/Corona (15731): transition worked
and if i Spam clicking in screen, i succ transition, but its not good!
https://lh4.googleusercontent.com/-sEmF17Wje70/UQ-LbrlICZI/AAAAAAAAJQY/2Es330O24l0/s901/2013-02-04
how fix this big problem?
And code:
[lua] function charSelected:postCollision( event )
if(int == 0) then
print ("-------------------")
print( “detect postcollision”)
newX = charSelected.x
newY = charSelected.y
transition.cancel(trans1)
timer.performWithDelay( 100, function()
trans1 = transition.to(
charSelected,
{time=500, x=newX, y=newY}
)
print (“transition worked”)
end )
moveToPoint()
print (“getting Point…”)
int = int + 1
end
end
charSelected:addEventListener( “postCollision”) [/lua] [import]uid: 211767 topic_id: 35432 reply_id: 141505[/import]