Open a game template that came with Construct called infinite jumping, that's a great sample how to do it.
I had tried like the infinite jumping,but it did not work.Then I tried to debug "infinite jumping“ on my phone(WP,android),when I tilted my phone,the character did't move left or right.Why?