+ 2
Canvas shivering �??[solved 1/2]
I coded my first canvas animationđšâđ» I randomised the spawn location of the ball in my code but when it spawns near the screens edges the ball starts vibratingđ„¶ and gets very slow ,why ?how can I fix this??đ€đ€đ€ And please tell if I am doing anything wrong heređ„șđ€Ș https://code.sololearn.com/Wpf1brzOWJdb/?ref=app
2 RĂ©ponses
+ 1
There should be can.height
In the second if statement
0
Shreyansh [ #yellove ] thanks for the help đ
But still when its spawns near edges of the canvas it shivers
Can u tell me how to fix it