The sprites.ExtendableSprite class was created specifically for creating derived classes. Using sprites.Sprite as a base class may have some unintended side effects.
Thank you. Also, how do I make these categories that appear after selecting the category?
← this(This is not my extension, I’m using block objects just as an example)
Refer to https://github.com/microsoft/arcade-block-objects/blob/master/api.ts.
Namespace annotation:
//% color="#c74e46"
//% subcategories='["number", "boolean", "string", "sprite", "image", "location", "any"]'
namespace blockObject {
Function placed into a subcategory:
/**
* Get a property of type number from an object
*
* @param obj The BlockObject to check
* @param property The property to check
*/
//% blockId=blockObject_get_numberProp
//% subcategory=number
//% block="$obj get number $property"
//% obj.shadow="variables_get" obj.defl="myObject"
//% property.shadow=blockObject_numberProp
//% weight=130
//% help="github:arcade-block-objects/getNum.md"
//% blockGap=8
export function getNumberProperty(obj: BlockObject, property: number): number {
Coding Grizzly Bear is now one of the moderators! ![]()

Hi
I have not posted a game yet on DefineImpossibleCo so I shall now do so. link to the old game
Group meme of the week:
did not ask the owner if I could do this so I will ask him with this message that I just typed
I Like it!
I thought you liked block code
I do like block code, I am sure it has made many lives easier but I still do some work in Java / Python. However Block code is still the best!!!
![]()
Congrats to @tjayy67 for becoming second and final moderator!![]()

