Chatting Area! Have fun!

Oo wait let me try

:heart: - Like

:+1: - Yes/Me too

:laughing: - XD

:open_mouth: - gasp!

:tada: - yippee!!

:duck: - :clap: or happy

:snake: - :enraged_face: or disagree or HOW DARE YOU

5 Likes

I think i use break. I use it to stop a repeat # of times block if a condition is met(like the flappy bird falling into the void after hitting an object)

1 Like

I use them in Javascript mostly

break is used in a switch/case statement to specify the end of the case or whatever, like this:

let var = randint(0,10)
switch(var) {
    case 0:
        //run code here if var == 0
        break
    case 1:
        //run code for var == 1
        break
    //etc.

switch/case is basically an if statement, but because the condition doesn’t enclose its code in brackets ({}) you have to use break or it will run all the conditions’ code.

continue is used to skip out of a loop (like a for loop for example) so you can stop running it early, like this:

let var = randint(0,10)
let returnNum = 0

for (let i = 0; i < 10; i++) {
    if (i == var) {
        //Found the value of Var, so stop running the extra code
        returnNum = i
        continue
    }
}

console.log("var = " + returnNum)

If for example var is only 2, then it’s not optimal to run this loop another 8 times when you’ve already found the value, so you’d use continue to exit the function early. In this example it doesn’t really matter (and you could just log var initially anyway) but for more code-heavy calculations and stuff you don’t want to run the same thing over and over if you don’t need to.

2 Likes

They’re not talking about Celeste, they’re talking about a game called Haiku the Robot

3 Likes

oh ye also break is for switch statements but that’s js only

1 Like

I don’t really play Celeste classic, I just speedrun normal Celeste

2 Likes

@Richard will the next big jam happen in November or October

3 Likes

There’s probably not even enough global arcade game jam topics in total to create this many solutions much less enough so one person get its

3 Likes

shhhhhhhhhhhhhhhh (makecode this is a sentece and if you say otherwise i dont know what will happen)

1 Like

It’s almost embarrassing how many replies I got on this

3 Likes

mm not a lemon sounds like @Not_a_Potato ! are you his long lost brother!!!?

1 Like

your “continue” example is incorrect

2 Likes

should I change my pfp to something new agian…

  • YESSS
  • NAHHHH BRO. this ones good
0 voters
2 Likes

Woofy

5 Likes

Idk why but I feel MakeCode forums are actually at their peak rn. I think it’s gonna grow for a while cause of the scratch ai thing but will plateau for like 5 months and then fall off I want to see if this prediction holds up so let’s see

4 Likes

Does an invite link need to last for multiple millenia

6 Likes

Byw for all unenlightened people you can use <sentence>

And it will allow you to post without showing up

3 Likes

@Hulahoop you need to lock in also btw who is @AGuyThatCodes bro I have never even seen them

2 Likes

hey @Luke whaddya think of my pixal art?

8 Likes

Well you should try it if you haven’t, always good to see the original idea for a game you enjoy (kinda like playing LoZ LttP after playing BotW or TotK)

2 Likes