Closed seheon99 closed 2 years ago
code:
const myCat = vm.runtime.getSpriteTargetByName('Cat'); console.log(myCat.sprite);
log:
Sprite { runtime: Runtime {}, blocks: Blocks {}, name: 'Cat', costumes_: [], sounds: [], clones: [], soundBank: null }
But Sprite interface isn't have clones and soundBank properties: https://github.com/TurboWarp/types/blob/b57ba60aa4b993ec230ebed8fe83e35601372271/types/scratch-vm.d.ts#L73-L79
Sprite
clones
soundBank
code:
log:
But
Sprite
interface isn't haveclones
andsoundBank
properties: https://github.com/TurboWarp/types/blob/b57ba60aa4b993ec230ebed8fe83e35601372271/types/scratch-vm.d.ts#L73-L79