This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2007-06-03 13:45:47

chrissie
Scratcher
Registered: 2007-05-17
Posts: 6

how do i ....

How do I have different sprites comes up in different slides like powerpoint. What  I want to do is when a sprite is clicked it does its animation then goes onto the next sprite?

Offline

 

#2 2007-06-03 14:33:20

weissjd
Scratcher
Registered: 2007-05-16
Posts: 64

Re: how do i ....

The best way is usually to have use broadcast block. So when sprite 1 finishes its animation it could broadcast sprite2go. Then sprite2 has a script that starts with When I receive sprite2go.

Offline

 

#3 2007-06-03 15:02:12

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: how do i ....

Or, have a variable called, eg "scene" that increases when your scene changes.  Each sprite checks "scene" versus a number and only appears if "scene" = that number.  Default status of the sprite should be hidden.

So for a sprite that only appears during scene 4, using the spacebar to change scenes:

When [space bar] pressed
- if scene not =4
-- hide
- else
- (do animation for this scene)

This can also be used to help keep dialogue in synch, instead of using "wait" commands all the time - ie the same sprite can be in 2 scenes, but it will automatically go to the dialogue for teh second scene on receiving the variable, not simply by waiting x seconds (which can get out of synch, especially online)

****

You can also have a script on the stagethat says:
When [space bar] pressed
- change costume to [scene]

Then, if all the backgrounds on the stage are named "1", "2" etc, the stage background appropriate for the scene will automatically change too.

****

Incendentally - a good source of backdrops is to do a google image search for "theatrical backdrops" as they have a slightly more sylised look than photos - cartoonish sprites against a photo-real backdrop sometimes clash.

Last edited by Mayhem (2007-06-03 15:15:24)


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

Board footer