Why don't you just recognize the ACTION_DOWN event and keep a flag stored 
that tells your game: "fingerDown" or "isJumping". As long as that value is 
true your character will be jumping and when the jump has finished the 
character will fall down with slow speed.
Let the ACTION_UP event unset that flag. isJumping will be false then. In 
that case while your character is still falling it should fall down with 
full speed.

On Saturday, February 23, 2013 8:00:09 AM UTC-6, Edvinas Kilbauskas wrote:
>
> Ok, so I'm having a little problem with OnTouchListener on android 2.3+ 
> devices.
> I'm making a game, when you touch your screen, the player jumps, and if 
> you hold your screen touched the player falls slower.
> Everything seem good on my android 2.2 device. Because I get 
> MotionEvent.ACTION_MOVE even if my finger isn't moving on the screen, but 
> on android 2.3+ devices I need to move my finger to get ANY event. How can 
> I make that when I hold the screen touched I get onTouch() some kind other 
> method called? 
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to