+ 2
Please I need to know how I did move an object 5 pixels each time I pressed a button
4 odpowiedzi
+ 15
Johan Alejandro Arena Hey, I assume you are using JavaScript for this type of work :)
Show us your code then we can elaborate more :)
+ 4
1. Declare the pos in the global scope.
2. Increment pos
3. getElements return an array, so you need to add [0]
4. style.left and remember to add "px"
https://code.sololearn.com/WJiVeZGZssjv/?ref=app
+ 3
Please post an attempt first
So that we can help you at where you are stuck at
0
I need help to know how I can move just an example with a button of the rest I'll take care of
https://code.sololearn.com/WZ38gzoSc4Gh/?ref=app