+ 2
Help me!!!
Help me figure out how to move the square. So that it does not stretch, but moves. the square only moves to the left and stretches to the right. help? https://code.sololearn.com/W7j5enMu6Dut/?ref=app
3 Answers
+ 1
Zachiah sawyer how to do it
0
In clearRect you are always doing -2 use a conditional just like when you modified the x
0
https://code.sololearn.com/WRNTz4sv9Ded/?ref=app you can just clear the whole rectangle if you don't want to manage previous state like this



