I have been having trouble with understand what they are trying to ask me to do in the project ‘Electric Mouse’ in the PRO skill path create video games with phaser.js.
in step 4 it states - The images we will be using for our characters will be taken from a sprite sheet. A sprite sheet contains multiple frames, each with a different image. We can “animate” these images by playing them in quick succession to appear like a picture is moving. To animate Electric Mouse, we need to insert two more properties inside each object of the
frames array. Create two more keys called
end and set the value for each animation as followed: For instance, the first element in
frames should have 3 properties:
keywith a value of
startwith a value of
endwith a value of
Save your code to see Electric Mouse’s idle animation.
It would be much appreciated if someone could assist me