How do I edit angles in bullet behavior.

0 favourites
  • 6 posts
From the Asset Store
This pack contains 10 types of bullet effects, with different shapes and colors.
  • Hello, in the bullet behavior, is there some way that bounce angles are the same as the angle of origin but reflected ?.

    Currently the bullet mode takes into account the shape of the object, I want to disable that and that is the style angle pong, pong ball.

    If the angle hits with 45 degrees, the new angle is 315 degrees.

    This is what I want

    I want the angle is the same, but that is reflected in the impacts, without alteration of the angle.

    I have read the documentation and I think the bullet behavior does not have this effect exactly, apparently the bullet behavior could vary the angle due to the shape of the object, then I want off that and get accurate reflected angle.

    Please, sorry for my english.

  • Did you check the bouncing bullets capx example? Is it similar to what you want?

    If you want it like how light bounce off the mirror then that's that.

  • The default mode in behavior bullet is the mode of what would be the reflection of light?

    If so, then yes, that is what I want, but this confuses me:

    In the documentation of bullet behavior say this:

    It will also calculate the angle of reflection to bounce off realistically depending on the object's shape and angle.

    That's what I meant, It refers to the shape of the sprite? or the shape of the bounding box ?.

    I want the shape of the object does not interfere, so I think you could get reflections as light.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Some quick experimentation with the example would show you that the bouncing behavior is based on the bounding box of the object.

  • The bounce action of the bullet behavior should bounce according to the shape of both objects, aka their collision polygons.

    You can approximate it with events like this:

    In the case of a ray of light, you only need the angle on the object that's hit then the reflected angle would be 2*AngleOfSurface-angleOfMotion.

  • The bounce action of the bullet behavior should bounce according to the shape of both objects, aka their collision polygons.

    You can approximate it with events like this:

    In the case of a ray of light, you only need the angle on the object that's hit then the reflected angle would be 2*AngleOfSurface-angleOfMotion.

    Ok, thanks for the information, it will examine later.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)