How do I make a bullet go around a solid and not bounce?

0 favourites
  • 2 posts
From the Asset Store
Bouncing ball
$9.99 USD
Template for a bouncing ball game, fully documented in comments and video
  • First of all, thank you for the attention.

    Here is my problem, I have a character that moves towards my touch position by angle and bullet behaviour, and in this case, it's set like this:

    _______________________________

    Touch: Is in touch

    Set *character* angle toward (Touch.X, Touch.Y)

    Set *character* Bullet speed to 130

    Set *character* animation to "Moving" (Play from beginning)

    Else:

    Set *character* Bullet speed to 0

    Set *character* animation to "Stopped" (play from beginning)

    ____________________________

    Well, the option "Bounce off solids" is enabled in my character's sprite, and I don't want it to bounce because when it touches a barrier, it sort of "boosts its speed" due to its bouncing movement, so I would like it to touch the solid, but not to bounce, how could I do this? Both sprites "character" and "barrier" are solids, and when "Bounce off solids" is off, it just ignores the barrier, and I don't want to set the speed of the"character" to 0 when it collides or overlaps "barrier" because it will no longer move at all.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If i understood you correctly you want to bounce on some objects but not on others.

    You could then either:

    A) Turn off bounce and manually simulate bounce only on the object you want, such as giving X speed or force on collision with specific objects.

    B) Turn on bounce but for the objects you want to avoid set a detection that once your player comes close to a certain object he gets pushed to the side or disable his movement in that direction while allowing him to walk away or set that speed to zero which you did not want but only for 1-2 seconds

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