@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
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.
Comments
Mysterious is good, but a question would help
@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
Are you using interpolate to move the elephant? If so that might be your problem.
Twitter:rondorocket
Web: rondorocket.com
@RondoRocket I'm using move to option, for both touch and release
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:
Change Attribute self.speed = (speed you want the elephant to move forward)
Otherwise
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.
Twitter:rondorocket
Web: rondorocket.com