Change linear motion while touch is pressed?

Hello all,

I have been trying to make an rule so that when i touch the screen my ships engines fires of and continue to fire until i release but i can't get it to work i can only get it to make action every time i touch the screen like flappy bird. But i want it to be more like jetpack joyride!

I have tried :
Rule if touch is outer and inner
when change attribute to linear motion 250

but i don't get it to work?

Anyone that know how to do this?

Hoping you understand what i mean?

Kind regards

Comments

  • jorkosjorkos Member, PRO Posts: 353

    use touchpoints and the whole screen. so when touchpoint is 1 do the rule, stop doing the rule when touchpoint is 0

  • @jorkos said:
    use touchpoints and the whole screen. so when touchpoint is 1 do the rule, stop doing the rule when touchpoint is 0

    What is touchpoint? i am really a newbie=)

  • jeezzcakejeezzcake Member Posts: 144
    edited November 2014

    In the actor, put an accelerate behaviour, relative to scene, pointing down with acceleration = 400;

    Put a rule that says : when mouse button is down , accelerate (relative to scene, pointing up, acceleration = 1000);

    • if this is what you mean.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    You may benefit from watching my .gsLogic series. Click the link in my signature.

  • Hi all,

    My problem was that i was not using when mouse down i just used when touch is outside, didn't know i could use mouse for mobile=)

    Thanks all!

Sign In or Register to comment.