Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to Shovel's Utilities #265

Closed
NOVASPIDERULTRA opened this issue Mar 12, 2023 · 12 comments
Closed

Updates to Shovel's Utilities #265

NOVASPIDERULTRA opened this issue Mar 12, 2023 · 12 comments

Comments

@NOVASPIDERULTRA
Copy link

ShovelUtils should have the ability to delete sprites and costumes.

@TheShovel
Copy link
Contributor

Gonna add functionality for that in the next update.

@Mickmick21
Copy link

Gonna add functionality for that in the next update.

do it for sounds, too

@DNin01
Copy link
Contributor

DNin01 commented Mar 13, 2023

That would be interesting for cutting down on memory usage if it could also create costumes and sounds. These features might be better fit in an extension of their own, though. Maybe call it "Asset Management"?

@TheShovel
Copy link
Contributor

I am already working on another extension at the moment. So unless someone else does it, this will have to wait.

@DNin01
Copy link
Contributor

DNin01 commented Mar 13, 2023

I am already working on another extension at the moment. So unless someone else does it, this will have to wait.

Git and GitHub repositories have a branching feature, which would let you do both of these simultaneously if you feel like learning how to manage branches. (If learning branching in Git is too much right now, making changes on the website might make this easier.)

@TheShovel
Copy link
Contributor

For some reason vm.deleteSound("NAME") just deletes the first sound in the list. Same with vm.deleteCostume(NAME).

@CST1229
Copy link
Contributor

CST1229 commented Mar 21, 2023

For some reason vm.deleteSound("NAME") just deletes the first sound in the list. Same with vm.deleteCostume(NAME).

http://llk.github.io/scratch-vm/docs/VirtualMachine.html#deleteSound
The argument is the sound index.

@TheShovel
Copy link
Contributor

How do I get the sound index. vm.runtime.ext_scratch3_sound.getSoundIndexByName has 2 values

@CST1229
Copy link
Contributor

CST1229 commented Mar 22, 2023

How do I get the sound index. vm.runtime.ext_scratch3_sound.getSoundIndexByName has 2 values

The first argument is the sound's name, the second argument is a BlockUtility object (though it only needs to access util.target.sprite.sounds)

@VBPROGER
Copy link

For some reason vm.deleteSound("NAME") just deletes the first sound in the list. Same with vm.deleteCostume(NAME).

http://llk.github.io/scratch-vm/docs/VirtualMachine.html#deleteSound The argument is the sound index.

It says 404. It seems the page got deleted or something..

@Xeltalliv
Copy link
Contributor

http://llk.github.io/scratch-vm/docs/VirtualMachine.html#deleteSound The argument is the sound index.

It says 404. It seems the page got deleted or something..

it was moved from LLK to scratchfoundation.
https://scratchfoundation.github.io/scratch-vm/docs/VirtualMachine.html#deleteSound

@BlueDome77
Copy link
Contributor

Delete costumes: #796

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants