Petition for coloring info blocks

I have been making a lot of games with timers and scores but I hate how when you want to change the color you have to pick a new palette. Could we make a few customization blocks to the block inventory. I’m pretty sure you can do this is JavaScript but I’ve been trying to use blocks so if I’m trying to help someone who doesn’t know JavaScript it’s easier or other stuff I guess. But it would be nice to have a block for it.

I would make a poll to see how many people agree but every time I make a poll it doesn’t work. Discourse has been weird with me lately.

11 Likes

That would be nice!

4 Likes

I like it, @RobbyZero ! I’m not sure I’ll have time this weekend as I have another project that I need to get done first, but I can put one together if someone else doesn’t get to it first!

There are functions for single-player games. I don’t see any for multiplayer games.

info.setBackgroundColor(bg)
info.setBorderColor(b)
info.setFontColor(f)
info.setLifeImage(img)
6 Likes

Since you asked so nicely, here you go! From the README file:

Tutorial

Want to see a tutorial on how to use this extension? Give this one a try!

https://arcade.makecode.com/#tutorial:https://github.com/robo-technical-group/pxt-info-blocks-extra/tutorial

See it in action!

Open this page at https://robo-technical-group.github.io/pxt-info-blocks-extra/

Use as Extension

This repository can be added as an extension in MakeCode.


See all of my MakeCode Arcade games and extensions here!

9 Likes

Yippee! Thank you! :partying_face:

5 Likes

I’ll make a note in the official repo to surface the built-in JavaScript functions as additional blocks. This probably will have to wait for a while … until a new version of MakeCode Arcade gets the green light.

If this happens, then this extension will become redundant. It won’t hurt anything; you’ll just have duplicate blocks in the toolbox. :smile:

They may still want to leave it as an extension to not clutter the built-in toolbox too much.

4 Likes

Is there a reason you make all your projects with the robo technical group instead of just independently.

4 Likes

Anything that is meant to be private or personal (like projects where I’m just trying things out) goes in my personal list of repos. For anything public, I typically put it in my company’s repos. No real reason; just my preference.

4 Likes