Wait, im intrigued. what are you talking about? your saying I don’at have to add an extra <=true>? and instead i can just put the variable on its on for true and a with a variable for false? even if i set to true in a different thing?
Conditional statements (like those used with if blocks) are Boolean, so checking if a Boolean variable is true is redundant.
For example, with an if statement (using TypeScript syntax for simplicity) :
if (conditional statement) {
// The statements in this block run if the conditional is true.
} else {
// The statements in this block run if the conditional is false.
}
So, saying something like
if (myBoolean == true) {
// True statements
} else {
// False statements
}
is redundant. You can simply say this instead:
if (myBoolean) {
// These run if myBoolean is true.
} else [
// These run if myBoolean is false.
}
Similarly, rather than saying this:
if (myBoolean == false) {
// Run if myBoolean is false
}
you can write this instead:
if (! myBoolean) {
// Bang / exclamation mark is the TypeScript syntax for "not"
// Runs if myBoolean is not true -- i.e., when myBoolean is false
}
Please note that there is nothing really wrong with writing something like if (myBoolean == true). It’s just redundant and, when you get further along in your computer science courses, it’s considered poor form.
Looks like I’ll definitely have to source both of you @VoxelMaster64 & @WoofWoof.
You guys were a big help!
yes, for example in https://makecode.com/_d0xbesbvPc6K I use
and ![]()
I added dying to the game.
Is there a short way of making it so you start back at the beginning of the level you died at or (haven’t made it yet but) boss battles?
Like not using
"If =2 then
“Call level 2”
Does the settings extention work? Someone explained it to me before but I forgot how to use it and never actually understood how it worked. pls help?
How are you guys so good at javascript? I’m stuck with blocks. I’m not saying I don’t like it, I love blocks, but I’m just curious how you guys got good at it? How do you remember everything?
The toolbox still exists. Use it until you start memorizing the syntax. It’s basically just like programming in Blocks … but it’s text-based.
Slime! ![]()

They can’t hurt you if you touch them. They hurt you when you hurt them. They also can’t move. Immovable object? no, they can move when you hurt them.
In the future when you play the game. Please hurt them. I spent time on them. I know you can ignore them and they can’t hurt you, but please kill them.
Ya. But how?! I don’t understand nothin.
Also I just realized you get to reply at any time you want and it insta does it for you.
Since you asked, you could start here:
yeah also @AlexK @VoxelMaster64 and @WoofWoof are probably gonna help you with everything(they did for me basically)
ooh using and as a coordinating conjunction is tuff(had this random urge to say that) anyways looks pretty good also hulahoop are you thinking of switching to JS/STS(not Slay the spire but actually Static TypeScript) for wfg? Anyways I have a suggestion for your slime to look slimier you should add a lighter layer and then a slightly darker than outline layer like this:
I also used it in this image:
Anyways that’s it from me. Peace
!!
For the level part it depends. in js you could do [level1, level2, level3, level4][currentLevel]() but in blocks you cant. It mostly depends on what your doing in each level. If each level I a Tilemap and that’s it, then do set tilemap to (get value from (array of (tilemap1, tilemap2, ...)) at currentLevel), but like I said it really depends on what code is running for each level.
I read a book (JavaScript All-in-One For Dummies), then learned the rest of MakeCode’s syntax
I don’t think i will switch to it but I might try out the thing that @AlexK sent.
It’s just reseting every fnuction for the level. so every sprite and tiles. and stuff
This better?
and since you drew that other thing. I don’t really want to waste it. How should I include it in the game? Or should I just ignore it?
Also I only have 3 greens, so thats the best I could do?
My current game has a high memory usage of 1.3 GB? or is it just the website with all of its contents? I’m scared
I still use the toolbox for controller.A.onEvent(…) because it’s so long to type out ![]()


