How do I make this

How do I make it that if you don’t press the up arrow then it would be on frame one and if you do then it would be on frame 2.
The thing that happened to me was that I was stuck on frame 2 when I pressed the up arrow.

1 Like

Just do if(!isKeyDown(“up”)) {
gotoAndStop(number or name)
}
Indent the gotoAndStop. Also learn wicks built in functions and the basics of JavaScript before making a game

1 Like

thanks but is there a way to make it when you are not clicking the up arrow then it would go back to frame one?

Hello! me need INSPERATION

any one on wick?..

Hellooooooooo I’m hereeee!

GOOD! now, what 2 do what 2 do…

That’s why there is a ! Before the action in the if statement

1 Like
if (keyIsDown('up')) {
  gotoAndStop(1);
} else {
  gotoAndStop(2);
}

If you want it to continue playing the timeline after 1 or 2, change gotoAndStop to gotoAndPlay.

For more info, visit https://www.wickeditor.com/#/learn/reference.

1 Like

Oh okay :)

hello guys I’m so bored so here is a meme

just gimme a sec real quick

Helloo!!
Do you like chicken nuggets?

yes

2 Likes

put u and ur friend pointing at a weird couple

1 Like

cool animation!

https://scratch.mit.edu/projects/1219455178/

Hope U Like It!

https://scratch.mit.edu/projects/1219510999/editor/

how bout dis?

This also works but it is a little longer than it needs to be for what they are doing