0
how to make a ball move when clicked on a arrow button
I found this on the internet.. https://code.sololearn.com/W0HvoLHHk7wX But i have no idea what the ___________________ <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.11/p5.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.11/addons/p5.dom.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.11/addons/p5.sound.min.js"></script> _______________________ does, Could someone help me make a version in plain html/javascript? or explain what that does..
4 Answers
+ 2
You can either use DOM manipulation, or canvas. If you just want a moving ball, you should probably use DOM, since it is easier
+ 2
thanks!
0
How to use that to make it move? i know how to make rectangles and stuff but i cant find how to get it to move.. would help me alot if you could help me more with it!