Move actor after collide with an actor

clebinho77clebinho77 Tubarão - sc - BrazilMember Posts: 18
edited November 2013 in Working with GS (Mac)
Hello people, o trying to make something like a pin ball game.
But i can't make an actor change the move after collides with a wall, or change move after ex: Posision.X >= 480 pixels.
I tryed everthing i Know, I tryed contrain attributem like (if collides with wall move to (random(0,360)), I tryed too (if pass position.X >= 480 Pixel, move (random(0,360)) and some others ways, but nothing work...
Anyone can help me with that?

Comments

  • DinoBitDinoBit Member Posts: 23
    1 use better grammar
    2 use better spelling

    I can hardly understand the question otherwise.

    From what I understand, it sounds like you are trying to make the actor go in a certain direction after being hit? If so then try this:
    Create a rule.
    When actor receives event, collide, with actor
    Accelerate
    (Direction) 90
    (Speed) 800 (or what ever speed and direction)

    If you want it to accelerate for a shorter time, then put the accelerate in a timer and set it to run for a few seconds.

    Again, if you provide better spelling and grammar, then it is easier for me to understand your question.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited November 2013
    Location says Brazil. I think there's a reason the grammar and spelling aren't up to par with a native English speaker.
  • clebinho77clebinho77 Tubarão - sc - BrazilMember Posts: 18
    Right, my english is really bad, I will live in Irland in 2014, there I will stud your language, until this, really sorry for this.
    About you dino, this is not what i want, i know if I create a rule (if actor colides with X acto move to random point) they will move to a random direction, my problem is the bug in this, see this video i make with the problem.
  • clebinho77clebinho77 Tubarão - sc - BrazilMember Posts: 18
    I finded a solution myself, but I really appreciated your help with me, thx people. ^^
Sign In or Register to comment.