Unexpected behavior by actor

TF101

  • *
  • Posts: 80
Good morning to all,

Unfortunately I don't know what to do.
I end up with my ideas. So now I have to ask this question:

What do I want to achieve:
I'm currently working on an Accelerometer game. In this game, the user has to avoid small bubbles, among other things. If it hits a bubble with the ball, it is sucked in and has to burst by tapping the bubble.

What have I achieved so far:
The hit and the sucking in works.
Tapping and bursting bubbles works.

The ball has the following behaviors:
- BallMove (Pic 04) = Moves the ball via Accelerometer (is disabled in the moment of collision)
- CannnotExitScreen
- Camera Follow

The bubble has the following behaviors:
- CannnotExitScreen
- BubbleBounce (Only ensures that the bubbles from the wall back)

What is my problem:
At the moment of the collision, the bubble sucks in the ball and suddenly "flies" to the right edge of the screen and then to the very bottom. But she shouldn't do that, she should just stand still.

In the pic 02, i have disabled the speed of both actors and also the behavior of the BallMove.
The Physic from Ball and Bubble is set to "Normal"

I just don't find the reason for the "movement".

Maybe one of you has an idea why this could be?

I hope I have expressed myself well because English is unfortunately not my mother tongue

Kind regards,

Thomas

LIBERADO

  • *
  • Posts: 2718
Make the bubble actor a sensor:

I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

TF101

  • *
  • Posts: 80
Hello LIBERADO,

Thanks for your response.
That solves the problem with the unexpected movement.

 But now the bubbles no longer bounce away from each other, but fly through themselves. This is also an undesirable behavior.

Do you know the reason for the movement?
I use this tiny game to learn stencyl.

Kind reagrds,
Thomas

LIBERADO

  • *
  • Posts: 2718
Try making the ball actor a sensor, instead of the bubble actor.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

LIBERADO

  • *
  • Posts: 2718
But, if you need the ball to bounce from something, then you should ignore my previous suggestions and use this other:

When the ball hits a bubble, use this block: 

And when the bubble bursts, use this block: 

Blocks found here:

I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

TF101

  • *
  • Posts: 80
Hello LIBERADO,

That works!
I tried to learn in the "Block Reference" why this happened the way it happened but I didn't understand it.
Anyway, it works. Thank you very much LIBERADO, you are a good teacher!

Kind regards,
Thomas