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

Sign In or Register to comment.