Hi there,
**I got a task from school to code a game in JavaScript using images.
Basically the images will look something like this:
And if you click on **yes**new image as a response
For example, if you press “yes” you will have to choose an item:
So my questions are these:
_1. If it’s possible to do that using images (like connect to show image 1 if yes or image 2 if no)
2. If I want to use keyboard instead of onclick(), what code should I use?_
As an example, I want the character to move from the first block to the second block using right arrow key ->. Or go back to the last block if they press the left key <-.
I know it might not look smooth, but I don’t have another idea of transition.
Please help me if you know JavaScript