JOIN THE SCRATCH GAME JAM 2021 HERE: https://scratch.mit.edu/studios/29318235/ NOTE: THIS IS NOT A FINISHED VERSION AS I DO HAVE TO WORK OUT SOME PROBLEMS WITH PADDLE DELAY AND CONNECTION ISSUES. ATTENTION: You need to be a Scratcher(you need a Account Frist to play) otherwise it won't work... This is a Online Version of Pong play with Friends or Strangers... Move with Up and Down Arrow, Hide all Variables with H, Make all Variables Visible with B. WARNING: The Pause Button does not Pause your Online match it just gives you Instrutctions. But this is only a BETA...
Explanation how it works: The Data for the Movement is calculated and transfered over Cloud-Variables if 2 Players are in the same Server Players Online(Player ID) = 2... If Players Online = 2 The Ball Detects it, waits 1 Second and Starts moving, when a Player joins if the Player ID = 1 then the First Players Job is to Transfer the Ball Angle using 3 different Variables: The Ball Angle, The Input and the Transfer Variable. but First the Second Players Computer picks Random Numbers beetwen 1 and 60 The picked Number goes to The Input then The Input Duplicates the Number.The duplicated Number goes to the Transfer-Variable it transfers the Number to the Ball Angle, now if the ball collides with a paddle it turns Ball Angle Degress...The Moves each Player Makes are transfered over Clouds this happens 3 Times every Second The Encoding and Decoding makes it a bit smoother because otherwise it would Run on 3 Frames per Second... It Calculates the Moves using 2 Variables: P1Y, P2Y...Both of them are Cloud-Variables just Like: Ball Angle,Transfer-Variable and The Input. For Example: If One Player goes up lets say its Player 1 it changes P1Y by 6 if he goes Down it changes P1Y by -6 then it sets the Y to P1Y, Player 2 sees Player 1 go up and down because the Cloud Variable Updates so he moves on Both Screens, Same for Player 2. Currently The Ball Physics are my biggest Problems i am probably the first One to make a real Online Pong in Scratch and i am working really, really Hard on this Game so i would really Aprecciate it if you like or favourite my Project because i worked 7 weeks(In Real Time) on this Game ;)