GameSalad

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.Posts: 12,820Member

    How are you moving the actor ?

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

    @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.Posts: 12,820Member
    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 Posts: 387Member, PRO

    @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 Posts: 8Member, BASIC
    edited August 2016

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

    Thanks for clearing that up NNterprises.

  • NNterprisesNNterprises Posts: 387Member, PRO

    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 Posts: 8Member, BASIC
    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.