Does any one know how to make that an actor have the same X & Y position?

perfectskills

  • Posts: 6
My problem is that, when a Ball (actor) collides with an actor , an actor will show and then will slide, but first i need to the position of this go to the ball and then slide, i need the position because it will happen 3 times in the same level, so i need that this actor every time that the ball collides, will go to the Ball, and yes i already try that when a ball colides with an actor, set x to x of last collided actor, set y to y of last collided actor. Thanks!!!

Abigayl

  • Posts: 807
You can use a scene loop in the "when created" for the ball to set an actor attribute to the slide (assuming the slide was made first). Then, use that actor's x and y to set the x and y of the ball. Be sure that at least one of the two actors is a sensor (or don't collide), else it won't work.
If you need help, please check my tutorials either here or Kongregate (http://www.kongregate.com/accounts/Abigayl) or come over to my stream: http://www.livestream.com/poweredbyflowers

perfectskills

  • Posts: 6
Thanks, But sorry it always go to the wrong x and y  :(