I need help with this

You are doing some cool stuff!!! I wish I knew how to make extensions, I got stuck passing variables and sprites into the function…

1 Like

if you want I can try to help you make one for example most of what you can do in a extension you can do by creating functions in blocks if that helps

1 Like

also some of my first extensions I used a AI to help and I have learned a little so I don’t know if that helps

1 Like

hey I have a question about my screen brightness extension is there any way to get the color pallet because it works but if you change the color pallet it resets the color pallet to the default colors and I don’t know how to fix it

2 Likes

hey I have a question so for anyone that checked out my extensions does anyone think they are useful because I’ve been wanting one of my extensions to be wanted to be added to make it more fun or fix a issue

1 Like

I know that

hex`__pallet`

contains a buffer of the pallet normally, but I haven’t tested if it changes when you change the pallet in use or if it’s just the default pallet. I have a feeling that it’s just the default one (the one you change in the assets tab) but idk

1 Like

so this is like a get pallet command

1 Like

also where would this go

1 Like

I just tried doing let dc = hex_pallet but it errors

1 Like

2 Likes

I tried to make a ui extension first, just simply drawing to the screen at z index. I know that was already made, but there isn’t good enough documentation on how to make an extension.

1 Like

You need 2 underscores, and I also spelled it wrong :sweat_smile:
It should be

hex`__palette`

Edit to say that it only contains the default palette and does not change when you change the palette using the image.setPalette() function. Obviously, the new palette must be saved somewhere, so I’m searching for it, but idk if I’ll find it since setPalette points to a c++ function.

1 Like

hey about duck hunt i have one of the game boys that has a motion sensor and what if you had a device that move it and you shoot a nerf dart at it sure its not the best it just poped into my head

1 Like

yes but where do I place this

2 Likes

but does this get the color pallete

1 Like

This is a buffer containing the color palette, and it does change when you change the color palette in the assets tab. It doesn’t change when you change the palette using the color extension, so it wouldn’t work with the color extension, but I think that’s fine. Looking at your repo, I think you are using it correctly, but idk without actually going deeper than just skimming it.

1 Like

well it seems to work with my extension I have a function that resets the color palette like let dc = hex 8888 99999 7777 and I replaced it with let dc = hex__palette

2 Likes

because originally it just set the colors in one of my projects with a changed color palette back to the original colors an I new why and that’s why I asked you and it seems to work find now thank you

3 Likes

neverstopthecoder/buttons here is yet another ui extension for buttons

1 Like

what about crafting extension

2 Likes