how can i tell anactor to go to position i pressed and then stop(like star daze)

arkonllfarkonllf Member Posts: 118
edited November -1 in Working with GS (Mac)
how can i tell an actor to go to position i pressed(touch) and then stop in the position?

Comments

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    use interpolate

    interpolate self.positionx to game.touch1.x over X seconds
    interpolate self.positiony to game.touch1.y over X seconds

    you'll have to make your own trigger to set it off
  • fzeedfzeed Member Posts: 247
    Or buy the new control set from tsb. it comes with a little demo like that.
  • arkonllfarkonllf Member Posts: 118
    Yea i saw it but i rather make stuff on my own.
    Thank jonmulchay
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    fzeed said:
    Or buy the new control set from tsb. it comes with a little demo like that.

    Please don't give people asking for help an answers like this. They have come here looking for free help not to spend there money. If they want to buy a template they will go looking through the marketplace.

    @arkonllf. If you want to be able to change direction mid move you will have to use the move to behavior instead. Or employ a method I came up with to cancel an interpolate. its a little tough to understand if your brand new to gamesalad but you can check out the free demo I made for that as well as a scene preview demo that also uses that method to cancel the preview if you click my user name and check out the demos I have on my wall. when you find the once you want to download go to GameSalad and click new then search for the name of the demo.

    Good luck

    ___________________________________________________________________________________
    TEMPLATES AND PROJECT HELP BY TENRDRMER. CLICK HERE!!!

    AppSolute Entertainment on Facebook
    AppSolute Entertainment on iTunes
Sign In or Register to comment.