Original Post
Hi!
This should be a very basic question, but anyway. I am going to do a (2d) bouncing-ball game. In the screen there should be lots of objects that is solid. The ball should bounce on these objects. The objects are all rectangular. What is the technique when deciding when the ball should bounce, and how it should bounce.
I thought this was simple. But when I did it, the ball bounces sometimes and sometimes not.
When the ball bounces on the wall I use the technique where xspeed or/and yspeed is inverted.
This should be the same technique as when dealing with objects in a platform game, shouldn''t it.
I want to have an answer from someone who have experience about this.
Thanks
/J Lindroos