Java spacebar code

Hello everyone, I’m a graphic design student and I wrote a topic a little while ago that I managed to solve …

I wanted to ask, given my little ability with javascript…se someone can help me in my minigame …

I should have a code that by pressing the space bar starts the sequence where my character drinks, while if you click it for too long, another sequence starts where the drink is reversed and lost … can anyone help me please?

Thank to everyone :slight_smile:Leprecauno.zip (388.4 KB)

A post was merged into an existing topic: Hype Exam please help me :frowning: