I was basically trying to make my function bounce when it hits the end of the window’s sceen but instead it only stops and doesn’t bounce
So here, I am trying to implement a Bounce logic whenever the object called Poo (followed a tutorial) hits the end of the screen. I copied my implementation for making any object not go off the screen since I tried reusing it and couldn’t find a way to implement the bounce, so I made another function, specifically for bouncing if it tries to go off the screen, but it still didn’t work. It only stops before going off the screen but it won’t bounce, the speed logic was outside the function before and now I tried putting it inside and still didn’t make a difference, please help. Also, the tutorial I’m following uses DirectX I think.