Im doing a Pong Game, where I want the score to be like a Tennis Game.
I already manage to make the code where the first and second score are worth 15 points and the third score is worth 10 points like in Tennis.
But now I want to make the situation where there is a tie when they reach the 40 points.
As in tennis i want that when they are tied at forty, one of them has to do 2 consecutive points to win the game. If one of them makes a point and then the other makes also one point, the they stay playing until one of them scores 2 consecutive points.
This is what i managed to do so far, the score until 40;
Im doing a Pong Game, and I want that when the ball hits the block/paddle to make a sound, but I only manage to make the sound play once.
It hits the block the first time and it makes the sound and then if hits the block again it doesnt do anything.
I tried to do "BallSound.loop();", but then the sound repeats even when the ball doesnt hit the block.
I want to make a button that when i click on it, something else will appear, in a new "page" and we will no longer se tha previous button on the screen...
But I only manage to do a code, where it appears the button that I must click, but when i do, the "new page" only appears whlie i press the mouse. When I released it, it only shows the button... And i want the button to be an image that i create and not something created with the Processing, like an Ellipse..
Im new at this, I would aprecciate some help because i need to deliever a work that depends on this..