You could do something like the following:

ball_hit_value = (((hit_position / paddle._width) * 100) - 50);

Then you end up with a number between -50 and +50 which can be used to modify the angle of the bounce off the paddle.

By the way, I'm not sure how to get the hit_pos on the paddle... Anyone?

Kevin N.



kariminal wrote:
Hello,
Im building an Arkanoid style game. In the original game the paddle's
reaction surface seems to behave like a concave surface - when reacting with
the ball.
Do any of you have any tips or links to usefull resources to implement this
function?.



Thanks


- karim

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to