Page 1 of 1

Animate this image in a way that If you are not pressing a button, the skeleton should not move and should just be facin

Posted: Fri Jul 08, 2022 6:45 am
by answerhappygod
Animate this image in a way that
If you are not pressing a button, the skeleton should not moveand should just be facing you.
If you press the right arrow key or “d” then it should move tothe right.
If you press the left arrow key or “a” then it should move tothe left.
If you press the up arrow key or “w” then it should move up.
If you press the down arrow key or “s” then it should movedown.
If it gets to the edge of the canvas, it should keep walking butnot move.
When you have this working, save it asskeleton.html andskeleton.js.
Please USE JAVASCRIPT FOR ANIMATION PART:
Here is the png file needed for the program.
Animate This Image In A Way That If You Are Not Pressing A Button The Skeleton Should Not Move And Should Just Be Facin 1
Animate This Image In A Way That If You Are Not Pressing A Button The Skeleton Should Not Move And Should Just Be Facin 1 (87.1 KiB) Viewed 43 times
D 3855