Yunus ÖZ Member Licensed User Mar 6, 2016 #1 Hi; im working for a game and there is a so strange problem There is a handler for controlling the hero if the hero has an accident, game show us a screen with 2 options one of them is "facebook sharing" and the other one is "play again" when i touch to "play again"; all values, hero's and handlers coordinates are resetting this is the handlers coordinates for my phone ->(Rect)(645, 1725, 794, 1874) after 4th or 5th resetting; restart function always logged above values but i cant touch and move the handler, because in gameview_touch function show me the different value about handler.DestRect I dont know why. Please help me Attachments b4aProblem.jpg 435.3 KB · Views: 436
Hi; im working for a game and there is a so strange problem There is a handler for controlling the hero if the hero has an accident, game show us a screen with 2 options one of them is "facebook sharing" and the other one is "play again" when i touch to "play again"; all values, hero's and handlers coordinates are resetting this is the handlers coordinates for my phone ->(Rect)(645, 1725, 794, 1874) after 4th or 5th resetting; restart function always logged above values but i cant touch and move the handler, because in gameview_touch function show me the different value about handler.DestRect I dont know why. Please help me
Erel B4X founder Staff member Licensed User Longtime User Mar 7, 2016 #2 See this post: https://www.b4x.com/android/forum/t...touchevent-and-panel_touch.44711/#post-273217 Upvote 0
Yunus ÖZ Member Licensed User Mar 7, 2016 #3 Erel said: See this post: https://www.b4x.com/android/forum/t...touchevent-and-panel_touch.44711/#post-273217 Click to expand... i changed the touch event to reflector and SetOnTouchListener but the problem still continues, now; the problem occurs not after 4-5, after 6-7 i can play 1-2 game more Please help what can i do about it Upvote 0
Erel said: See this post: https://www.b4x.com/android/forum/t...touchevent-and-panel_touch.44711/#post-273217 Click to expand... i changed the touch event to reflector and SetOnTouchListener but the problem still continues, now; the problem occurs not after 4-5, after 6-7 i can play 1-2 game more Please help what can i do about it
Erel B4X founder Staff member Licensed User Longtime User Mar 8, 2016 #4 Does it happen in Release mode as well? Upvote 0
Yunus ÖZ Member Licensed User Mar 8, 2016 #5 i thinkkk, cant see any difference. in debug or release, i cant touch the handler. it is at more right side and up or down Upvote 0
i thinkkk, cant see any difference. in debug or release, i cant touch the handler. it is at more right side and up or down
Erel B4X founder Staff member Licensed User Longtime User Mar 8, 2016 #6 Try to reproduce it in a small project and upload it (File - Export as zip). Upvote 0
Yunus ÖZ Member Licensed User Mar 10, 2016 #8 There is no one who has any idea for this problem I work on it in a 1 week,everything is running normal but a few times later, touch function see handler position in different position, i see it in different position I'm going crazy Upvote 0
There is no one who has any idea for this problem I work on it in a 1 week,everything is running normal but a few times later, touch function see handler position in different position, i see it in different position I'm going crazy