Need help with character movement (posted video)

I post a video because i had a hard time explaining in message what im trying to do.

Comments

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

    Mysterious is good, but a question would help :D

  • Kittyclaws390Kittyclaws390 Member Posts: 27
    edited June 2014

    @socks Sorry, I thought I would explain better with it being visual in the video lol I'm trying to get the elephant to fall back into place even when the touch is pulled off it but still clicked down? If that makes any sense lol I'm not sure if it's a glitch or needs a code to not do that :)

  • RondoRocketRondoRocket Member Posts: 411

    Are you using interpolate to move the elephant? If so that might be your problem.

  • Kittyclaws390Kittyclaws390 Member Posts: 27

    @RondoRocket I'm using move to option, for both touch and release

  • RondoRocketRondoRocket Member Posts: 411
    edited June 2014

    Maybe just try the move behavior and create a self.speed integer attribute in the actor. Put the self.speed attribute in the speed setting for the move behavior.

    Then create a rule:

    • touch pressed
    • self.position.x < or = (the location you want the elephant to travel)

    Change Attribute self.speed = (speed you want the elephant to move forward)

    Otherwise

    • self.position.x > or = (the location you want the elephant to come back to)

    Change Attribute self.speed = (speed you want the elephant to move backwards)

    Not sure if this is exactly what you are looking for or if its the best solution but maybe it will help.

Sign In or Register to comment.