(SOLVED) Trigger_response firing more than once

I have two game objects (a ball and paddle) colliding and I am using trigger_response to add code to change the direction of the ball.

The problem I am having is that the code following “trigger_response” is firing multiple times (usually twice). This changes the direction more than once, and sends the ball in the wrong direction. I only want it to trigger the code once for every time it touches the paddle.

Any ideas?
Thank you!

I’m guessing that you are getting one “enter” and one “exit” message. You should probably only react to the “enter” message and ignore the “exit” message. An example can be seen in the trigger_response API docs.

The trigger response should get called twice, one for enter, and one for exit. Could this be what is happening? trigger_response

1 Like

. . .

Darn, britzl beat me. to it.

. . . And Mathias Westerdahl . . .

2 Likes

Well that was easy! Thanks @britzl @Mathias_Westerdahl and @ross.grams

1 Like