I need help.
I’m new to Microsoft Makecode, and I’m currently using Arcade. I’ve searched everywhere, but I can’t find it. Can someone tell me how to code in ‘if’ ‘elif’ and ‘if else’?
It could be an extension, alternative, substitude, ANYTHING. In my game, I’m making a portal from the main tilemap to a new one, but I don’t know how to detect when the sprites are touching.
Can someone please help me? I need to input the change tilemap code, but nothing works, I’m used to Scratch, which is why I’m so nooby at this. Thanks!
3 Likes
Loll this is going to have so many replies when the mods get back to work 
So many people here love to help and it’s great 
Hello! Welcome to Makecode!!
Depending on what you know, this might be under explaining things or over explaining.
If, elif, and else can all be accessed in the “Logic” tab:
You can drag them out to use them, and the little “+” in the corner of them is used to add elif and else options. Then, also from the logic tab, you can grab all manner of things to place in the little “< >” of the IF block:
Then you can add variables to these. If the variable is a Boolean (True or False), you don’t even need anything extra, just put the variable directly into the IF “<>” thing!
For sprite-sprite collision, you can use the sprite overlap block from the Sprite tab:
And sprite-tile collision is found in the Tilemap tab:
I hope this helps!! If you have any other questions, just ask!
1 Like
Sorry if I bothered anyone. Never mind, I found the blocks. I was searching in Loops in stead of Logic.
1 Like
Sorry about that. The mods have to get breaks sometime! But it also means people get unanswered for a while unfortunately. Good luck on the rest of your game!!!