[Extension] Modes - Levels made Easy

Hey, y’all! So basically I made this extension on my school account a while back, and I’ve used it on quite a few Arcade projects. And I decided I wanted you guys to have access to it! So I uploaded it to GitHub and stuff and BOOM. The :sparkles: M O D E S :sparkles: extension!!!

Blocks & Definitions


Instead of using a plethora of variables and functions, this extension makes levels and stages easier than ever in blocks.

  • Create mode $mode
    Screen Shot 2023-04-29 at 3.41.28 PM
    This block is where to start, this will create a mode that can be referenced throughout your code.

  • Set mode to $mode
    Screen Shot 2023-04-29 at 3.41.28 PM (2)
    This block will set the current mode to the specified, pre-existing mode (You can only set a mode if you’ve already created one. This block won’t create a mode.)

  • When the current mode is changed to $mode
    Screen Shot 2023-04-29 at 6.14.08 PM
    This block will detect whenever the current mode is changed, and if the new current mode is the one specified in the string box.

  • Other Blocks
    Screen Shot 2023-04-29 at 6.18.44 PM

Example


*

Not much, I’ll admit. But, it was fun to make. And I think some of you guys will find it useful, just like I have. I’m working on a few other concepts for extensions at the moment, so any suggestions would for sure be put into consideration. Alright, I gtg now, y’all have a great day!

Link from GitHub


8 Likes

Very cool! Might use this for one of my games.

5 Likes

Update 2.0.0: Even easier!

Now you can reference modes with enumerations! Instead of having to enter the string for each block, just open the dropdown and create/use any mode.

I also removed the create $mode block, further simplifying the extension!

2 Likes

AWESOME! I’ll use this in my game, with credit of course. But, I don’t know why GitHub even works; how do I download it?

1 Like

Thank you for using my extension!

To download the extension, press the plus button in your toolbar (it should say ‘Extensions.’)

IMG_8022

Then, just type the URL to the extension’s GitHub page as shown:

Never mind, I figured it out.

Wait… isn’t this just functions?

3 Likes

Yeah, but I don’t have to scroll through a giant list of function blocks to get the one I need. I can just drag and drop, then find the mode within that block.

It works well for my workflow, that’s why I mentioned that modes were just for me at one point.

2 Likes