How Do I increase Movement speed +1 after touch?

I want actor to increase Movement speed +1 after touch? What is the formula for that please?

Comments

  • SocksSocks London, UK.Member Posts: 12,822

    How are you moving the actor ?

  • freddymm.artistfreddymm.artist Member, BASIC Posts: 8

    @Socks said:
    How are you moving the actor ?

    It is a background that will continuously repeat itself downwards since I wrapped the scene's Y. So any time I tap the screen it should +1 on the movement speed (downwards)

    If I need another actor to trigger it's movement that's fine... but what is/are the formula/s for that?

  • SocksSocks London, UK.Member Posts: 12,822
    edited August 2016

    @freddymm.artist said:

    @Socks said:
    How are you moving the actor ?

    It is a background that will continuously repeat itself downwards . . .

    How are you moving the background ?

  • NNterprisesNNterprises Member, PRO Posts: 387

    @Socks is asking, are you moving the actor via move, interpolate, accelerate, constrain etc? Because it will be different depending on what you are using. Or are you not using anything yet?

  • freddymm.artistfreddymm.artist Member, BASIC Posts: 8
    edited August 2016

    Oh. I'm using the "Move" behavior.

    Thanks for clearing that up NNterprises.

  • NNterprisesNNterprises Member, PRO Posts: 387

    I don't have it in front of me but I think MOVE rule moves it in the direction you choose at a speed you choose.

    Create a real global attribute on the side called SPEED.
    Instead of choosing a speed as a number, put that attribute in there.

    On whatever actor you are clicking/tapping, do:
    Rule:
    When touch is pressed,
    Change attribute SPEED to SPEED + 1

  • freddymm.artistfreddymm.artist Member, BASIC Posts: 8
    edited August 2016

    Thanks MIL NNterprises!!! It worked!!!

    Instead of Global I created SPEED on the very own actor's attributes section.

Sign In or Register to comment.