+ 4
Can anyone tell me how can i move my charecter in javascript without canvas with keyboard please
11 Respuestas
+ 4
https://code.sololearn.com/Woo2ZlV5iWB0/?ref=app
if it's not that then I can't help you ...
+ 8
An example:
https://code.sololearn.com/WdA2Z0oNVPH1/?ref=app
+ 5
https://www.w3schools.com/js/js_htmldom_eventlistener.asp
https://developer.mozilla.org/de/docs/Web/API/KeyboardEvent
+ 4
is css too hard or why don't you want to use it? 😅
+ 3
Thanks a lot dude you were a great help
+ 2
could you give us a reference, like what you have done so far?
are you trying to move a div or sth. like that?
no matter what you most definetly will need to use EventListeners.
+ 2
I need to move a image in a game
+ 2
Can you please give me a example
+ 2
Sorry but I want to move my character without CSS and attack enamy
+ 2
Sorry not CSS canvas
+ 1
Ya! Anton bohr...
I suggest also CSS