Why bounce? (collision problem)

Usernoob

  • Posts: 27
Hello, I've come to tell you about the mysterious bouncing collision !

I have an actor that rotates following the angle that takes the player, the player can shoot bullets that give him cause (damage - armor)
(bullets also spin their sprite in the direction you aim)

the bullets should do him harm and be destroyed in the process, but surprise! if shoot at a certain angle (behind) they bounce or even stand still without being destroyed or causing damage in the process.

It is as if it detects the collision but does not apply what it is asked to do after that.

I'm using simple physics and square boxes of collision, no circles or polygons.

Is it possible that the collision box rotates and does not work properly?

TheIndieStation

  • *
  • Posts: 2260
Simple physics means non rotation square boxes. So that might be your issue

Usernoob

  • Posts: 27
That was a very noob question, my apologies.

By taking advantage of the theme ...
Why are the actors leaving the scenes  was"trapped" and how do I avoid it?

LIBERADO

  • *
  • Posts: 2660
Why are the actors leaving the scenes  was"trapped" and how do I avoid it?
To save resources and improve performance. Use this block to avoid it: 
Normally, actors stop updating after they are off-screen. This block turns that option off and makes them always active no matter where they are.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

Usernoob

  • Posts: 27
Thank you all, nice help. If it were not for you all I would be (again) stuck.

Usernoob

  • Posts: 27
I have removed the rotation to the bullet and the actor who hit him and the bullet continue bouncing or staying still next to the actor ...

Is it possible that the problem is the part of "kills the last actor collided"? maybe if the actor who hits the bullet is colliding with something else, it eliminates the latter ...

Bhoopalan

  • Posts: 1016
I have removed the rotation to the bullet and the actor who hit him and the bullet continue bouncing or staying still next to the actor ...

Is it possible that the problem is the part of "kills the last actor collided"? maybe if the actor who hits the bullet is colliding with something else, it eliminates the latter ...

Why not create the "when actor hits an actor" event?
If I helped you at anytime, help me back build my twitter followers :)
https://twitter.com/imbhoopalan

Usernoob

  • Posts: 27
I find an easy solution that works with simple physics and allows you to rotate objects:

In the bullet/arrow/projectile

Collisions ---->  Physical properties---->Is a sensor?  V (mark)

then you can have actors and bullets with rotating sprite.