How to make an actormove where you touch?

I know this question have been asked many times before. All the answer i saw always say to add this code to the actor

when mouse is down
interpolate self.position.x to mouse.position.x
duration 0.2
interpolate self.position.y to mouse.position.y
duration 0.2

but where exactly you have to put this code? I dont know where to add this

Comments

  • Bad wolf GuyBad wolf Guy Member Posts: 206
    Put into the actor you want to follow the touch. It's that simple :)
  • elpitaelpita Member Posts: 2
    lol how do you "put it into" the actor?
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    You'd put it in the actor you want to move.
  • elpitaelpita Member Posts: 2
    I got it :) Thanks
Sign In or Register to comment.