It's already programmed so when something hits a wall, it's velocity negates and it goes the other way.
These are obviously in if statements something like this:
if (x < radius) {
x = radius;
vx = -vx;
}
So I want to put within that if statement to play a sound when that condition is met.

New Topic/Question
Reply



MultiQuote




|