help me please | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

help me please

English: I need to make a ball that will move in my figure: a square or a rectangle, who understands help me please :D Russian: ╨Ь╨╜╨╡ ╨╜╤Г╨╢╨╜╨╛ ╤Б╨┤╨╡╨╗╨░╤В╤М ╤И╨░╤А╨╕╨║ ╨║╨╛╤В╨╛╤А╤Л╨╣ ╨▒╤Г╨┤╨╡╤В ╨┤╨▓╨╕╨│╨░╤В╤М╤Б╤П ╨▓ ╨╝╨╛╨╡╨╣ ╤Д╨╕╨│╤Г╤А╨╡: ╨║╨▓╨░╨┤╤А╨░╤В ╨╕╨╗╨╕ ╨╢╨╡ ╨┐╤А╤П╨╝╨╛╤Г╨│╨╛╨╗╨╕╨╜╨╕╨║, ╨║╤В╨╛ ╨┐╨╛╨╜╨╕╨╝╨░╨╡╤В ╨┐╨╛╨╝╨╛╨│╨╕╤В╨╡ ╨┐╨╛╨╢╨░╨╗╤Г╨╣╤Б╤В╨░ :D

3rd Jun 2020, 1:06 PM
Danil Spakov
Danil Spakov - avatar
7 Answers
+ 3
Maybe this gives you an idea ,and sorry if you don't understand but the idea is to move the ball left ,down,right and top and left again, https://code.sololearn.com/WPHClrkufJ3o/?ref=app
3rd Jun 2020, 1:42 PM
Abhay
Abhay - avatar
+ 3
Look at the css code for ball carefully and if you don't understand all these ,then go through Html course,then css and later js
3rd Jun 2020, 2:00 PM
Abhay
Abhay - avatar
+ 2
Abhay, Thank you so much, you really helped, and you guys also thank you: D
3rd Jun 2020, 1:48 PM
Danil Spakov
Danil Spakov - avatar
+ 1
Change its x and y using js , U should share your code
3rd Jun 2020, 1:11 PM
Priyanshu Gupta(рдкреНрд░рд┐рдпрд╛рдВрд╢реБ рдЧреБрдкреНрддрд╛)
Priyanshu Gupta(рдкреНрд░рд┐рдпрд╛рдВрд╢реБ рдЧреБрдкреНрддрд╛) - avatar
0
but how to make in a circle? just learning: D
3rd Jun 2020, 1:58 PM
Danil Spakov
Danil Spakov - avatar
0
I just have a rounded rectangle and I would like for the ball to travel beautifully inside
3rd Jun 2020, 2:00 PM
Danil Spakov
Danil Spakov - avatar
0
I canтАЩt understand what is there?
3rd Jun 2020, 2:02 PM
Danil Spakov
Danil Spakov - avatar