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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 42 times
D 3855
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply