My new game needs some help

I am trying to figure out how to make it so when i select Credits from mini menu on start screen it goes to credits and when you select start game it starts the game. I cant find a block that will work. The first person to give a working solution will be put into the credits. Here is a screenshot of my code.

1 Like

ok, you need to add this:

Simple! Grab and add the [On (A) button pressed] under the mini menu tab to the end of On start. Then put a if statement from the logic tab in it. Then add either a < 0 = 0> or < โ€œโ€ = โ€œโ€> block from the logic tab and add selectionindex or selection respectively in the right part.
It should look something like this

This block???

1 Like

https://arcade.makecode.com/S39132-82161-8000

This code solves it all.

PS: When the game is loaded click the โ€œ</>โ€ in the top row. :slight_smile:

this should work

Thanks everyone! Iโ€™m probably going to end up putting you all in credits

4 Likes

:smiling_face: Thanks!

Does anyone know how to code gravity?

1 Like

also, i could use some help with walking animations. I have an animation, and i managed to start it, but i am not sure how to make it stopโ€ฆ

the code solves it all

2 Likes

oof looking at the animation and gravity code i hope it doesnt break my game, i alr have so many variables and blocks in generalโ€ฆ

1 Like

Sneak Peak:

CodeQuest

Even better, you could use the arcade-character-animations extentions to save some space!

2 Likes

By the way press E on your keyboard to jump

you mean W

Itโ€™s great!

oh you poor soul, you think thatโ€™s a lotโ€ฆ

2 Likes

Its not jumping :sob:

1 Like

CodeQuest 1.5

Can you tell me if it fades to grayscale when in the cutscene right after you click start game