+ 4

Can anyone tell me how can i move my charecter in javascript without canvas with keyboard please

23rd Jun 2019, 8:21 AM
Pranav mundhra
Pranav mundhra - avatar
11 Réponses
+ 4
https://code.sololearn.com/Woo2ZlV5iWB0/?ref=app if it's not that then I can't help you ...
23rd Jun 2019, 9:09 AM
Anton Böhler
Anton Böhler - avatar
23rd Jun 2019, 8:37 AM
Haris
Haris - avatar
+ 5
https://www.w3schools.com/js/js_htmldom_eventlistener.asp https://developer.mozilla.org/de/docs/Web/API/KeyboardEvent
23rd Jun 2019, 8:40 AM
Anton Böhler
Anton Böhler - avatar
+ 4
is css too hard or why don't you want to use it? 😅
23rd Jun 2019, 8:51 AM
Anton Böhler
Anton Böhler - avatar
+ 3
Thanks a lot dude you were a great help
23rd Jun 2019, 9:10 AM
Pranav mundhra
Pranav mundhra - avatar
+ 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.
23rd Jun 2019, 8:34 AM
Anton Böhler
Anton Böhler - avatar
+ 2
I need to move a image in a game
23rd Jun 2019, 8:35 AM
Pranav mundhra
Pranav mundhra - avatar
+ 2
Can you please give me a example
23rd Jun 2019, 8:36 AM
Pranav mundhra
Pranav mundhra - avatar
+ 2
Sorry but I want to move my character without CSS and attack enamy
23rd Jun 2019, 8:42 AM
Pranav mundhra
Pranav mundhra - avatar
+ 2
Sorry not CSS canvas
23rd Jun 2019, 8:52 AM
Pranav mundhra
Pranav mundhra - avatar
+ 1
Ya! Anton bohr... I suggest also CSS
27th Jun 2019, 10:17 AM
Lmd
Lmd - avatar