I'm having trouble with the hit command

the hit command will not respond, I think this is because it’s not looped, but I don’t know how to use that command.

Hello, and welcome to the Wick forums.
I’d like to have a screenshot of your code and this “hit” command.
Do you mean when the user clicks on your object?

It’s kinda hard to understand just from the image, but try typing this inside the if statement: project.gotoAndStop(2);

Also, you need to type " ; " after every line of code.

You have this code inside of the “keydown” script, in other words this code will only run when a key is being pressed down. To make this code run all the time, add an update script and have this code there instead.

Also, you can delete line 1, you don’t need it.