Pages: 1
Topic closed
I would like to create my own .sprite files to support various classroom projects and assignments. Any ideas how I would do that? Basic use case would be, say for a Math class, in conjunction with a geometry assignment, I'd have students import a few sprites I made with pre-existing scripts (examples below from Scratch 1.2.1) and completing the assignment would mean adding their own scripts and making their own project using some number of sprites that were made available to them. How would I go about saving an individual sprite with a set of scripts as a .sprite file as has already been done with the list below in Scratch 1.2.1? Thanks in advance. Best regards, -- DanG / Daniel Green / Sun Microsystems
./Media/Costumes/Animals/Crawling Ant.sprite
./Media/Costumes/Animals/Follow-mouse Fish.sprite
./Media/Costumes/Animals/Gravity Cat.sprite
./Media/Costumes/Animals/Running Ant.sprite
./Media/Costumes/Fantasy/Growing Dragon.sprite
./Media/Costumes/Fantasy/JetPack Girl.sprite
./Media/Costumes/Fantasy/Jump-flip Monster.sprite
./Media/Costumes/Fantasy/Jumping Jack.sprite
./Media/Costumes/Fantasy/Painting Unicorn.sprite
./Media/Costumes/People/Dancer.sprite
./Media/Costumes/People/Gymnast.sprite
./Media/Costumes/People/Talking Person.sprite
./Media/Costumes/People/Walking Dude.sprite
./Media/Costumes/People/Whirling Girl.sprite
./Media/Costumes/Things/Bouncy Ball.sprite
./Media/Costumes/Things/Click-N-Drag Basketball.sprite
./Media/Costumes/Things/Clickable Drum.sprite
./Media/Costumes/Things/Clock-hand.sprite
./Media/Costumes/Things/Disappearing Bananas.sprite
./Media/Costumes/Things/Draggable.sprite
./Media/Costumes/Things/Drawing Pencil.sprite
./Media/Costumes/Things/Following Arrow.sprite
./Media/Costumes/Things/Friction Marble.sprite
./Media/Costumes/Things/Gravity Marble.sprite
./Media/Costumes/Things/scream-O-meter.sprite
./Media/Costumes/Things/Touch-me Trampoline.sprite
./Media/Costumes/Transportation/Back-and-forth bus.sprite
./Media/Costumes/Transportation/Perspective Ship.sprite
./Media/Costumes/Transportation/Rotating Car.sprite
Offline
I have no clue if this his saves the scripts (I think it does. Not 100% though) but export each one. Not the costumes, the sprite. Or, i know the Scratchresources has some stuff. You can always ask one of them (probably JSO since he created it) how to do it, since some of their sprites have scripts

Offline
dang wrote:
I would like to create my own .sprite files to support various classroom projects and assignments. Any ideas how I would do that? Basic use case would be, say for a Math class, in conjunction with a geometry assignment, I'd have students import a few sprites I made with pre-existing scripts (examples below from Scratch 1.2.1) and completing the assignment would mean adding their own scripts and making their own project using some number of sprites that were made available to them. How would I go about saving an individual sprite with a set of scripts as a .sprite file as has already been done with the list below in Scratch 1.2.1? Thanks in advance. Best regards, -- DanG / Daniel Green / Sun Microsystems
./Media/Costumes/Animals/Crawling Ant.sprite
./Media/Costumes/Animals/Follow-mouse Fish.sprite
./Media/Costumes/Animals/Gravity Cat.sprite
./Media/Costumes/Animals/Running Ant.sprite
./Media/Costumes/Fantasy/Growing Dragon.sprite
./Media/Costumes/Fantasy/JetPack Girl.sprite
./Media/Costumes/Fantasy/Jump-flip Monster.sprite
./Media/Costumes/Fantasy/Jumping Jack.sprite
./Media/Costumes/Fantasy/Painting Unicorn.sprite
./Media/Costumes/People/Dancer.sprite
./Media/Costumes/People/Gymnast.sprite
./Media/Costumes/People/Talking Person.sprite
./Media/Costumes/People/Walking Dude.sprite
./Media/Costumes/People/Whirling Girl.sprite
./Media/Costumes/Things/Bouncy Ball.sprite
./Media/Costumes/Things/Click-N-Drag Basketball.sprite
./Media/Costumes/Things/Clickable Drum.sprite
./Media/Costumes/Things/Clock-hand.sprite
./Media/Costumes/Things/Disappearing Bananas.sprite
./Media/Costumes/Things/Draggable.sprite
./Media/Costumes/Things/Drawing Pencil.sprite
./Media/Costumes/Things/Following Arrow.sprite
./Media/Costumes/Things/Friction Marble.sprite
./Media/Costumes/Things/Gravity Marble.sprite
./Media/Costumes/Things/scream-O-meter.sprite
./Media/Costumes/Things/Touch-me Trampoline.sprite
./Media/Costumes/Transportation/Back-and-forth bus.sprite
./Media/Costumes/Transportation/Perspective Ship.sprite
./Media/Costumes/Transportation/Rotating Car.sprite
Create the sprite with the scripts that you want to have attached to the sprite.
Select the sprite.
Click the Export button in the Scripts tab.
Specify a location to save the .sprite file and click the OK button
Offline
dbal wrote:
Create the sprite with the scripts that you want to have attached to the sprite.
Select the sprite.
Click the Export button in the Scripts tab.
Specify a location to save the .sprite file and click the OK button
Exactly what I said, except the actual steps

Offline
Excellent! Thanks for the info. What are the boundaries of this approach, if you save a sprite that's got events, variables, timers and other sprite context, do those items automagically appear in a project when you import the sprite? Again, thanks, this is very enabling for setting up curriculum and lessons using Scratch. Best regards, -- DanG
Offline
dang wrote:
Excellent! Thanks for the info. What are the boundaries of this approach, if you save a sprite that's got events, variables, timers and other sprite context, do those items automagically appear in a project when you import the sprite? Again, thanks, this is very enabling for setting up curriculum and lessons using Scratch. Best regards, -- DanG
You just exceeded my knowledge, so I don't know the answer to those questions.
Offline
dang wrote:
Excellent! Thanks for the info. What are the boundaries of this approach, if you save a sprite that's got events, variables, timers and other sprite context, do those items automagically appear in a project when you import the sprite? Again, thanks, this is very enabling for setting up curriculum and lessons using Scratch. Best regards, -- DanG
Umm... It should. I've never tried it, but it seems that it should be so
Last edited by Bluestribute (2008-06-26 21:42:59)

Offline
dang wrote:
Excellent! Thanks for the info. What are the boundaries of this approach, if you save a sprite that's got events, variables, timers and other sprite context, do those items automagically appear in a project when you import the sprite? Again, thanks, this is very enabling for setting up curriculum and lessons using Scratch. Best regards, -- DanG
From what I've seen, (with my scratchresources website)
This export everything.
Broadcasts stay, when they are used.
Variables , globals and locals, are imported - when they are used.
"Touching?" blocks referring to other sprites which don't exists are emptied.
Though, i would suggest to have each sprite working on its own. I've had some problems with importing sprites when they use the same variable names. Sometimes, they have the same name, but they refer to another value - even when they are both locals. Especially multiple sprites reacting on the same variable is tricky.
Sometimes Scratch even spoils some debug errors over the screen when importing a sprite or project, there is another topic about that. http://scratch.mit.edu/forums/viewtopic … 440#p18440
At least, i got all the sprites on [url=resources.scratchr.org]Scratch resources[/ur] to work, and they are using variables and broadcast.
Probably the bes solution will be to try importing the sprite, before giving them to your students.
I hope it helped,
Joren
Offline
dungatep wrote:
Can I import a sprite from one project, to another project?
Yes, you can. Just follow the steps in dbal's comments earlier in this thread.
Offline
Topic closed
Pages: 1