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

#1 2012-05-13 10:11:48

arshad9
Scratcher
Registered: 2010-02-16
Posts: 18

How to add videos into a sprite with many costumes

Hey guys! the title basically mentions my problem. I have seen a number of projects in scratch which have videos but split into many sprites. How do you do this.

Requesting help from the community
Arshad9


http://gifsoup.com/imager.php?id=1085007&t=o

Offline

 

#2 2012-05-13 10:54:15

turkey3
Scratcher
Registered: 2011-12-04
Posts: 500+

Re: How to add videos into a sprite with many costumes

To make a video, you will need many costumes for a sprite. Each costume is a frame. Then, after the costumes are done you would use this script in the sprite:

When gf clicked
switch to [costume 1 v]
Repeat until <(costume #) = [# of last costume]> // so it ends with the last costume 
  Next costume
  Wait (0.05) seconds // number may vary depending on speed of video
To make the different costumes, instead of redrawing everything, just copy the last costume and edit the new copy. This script may vary depending on your game. Backgrounds probably will also be needed, but this script wouldn't be used for those.

Last edited by turkey3 (2012-05-13 11:00:16)

Offline

 

#3 2012-05-13 11:17:27

arshad9
Scratcher
Registered: 2010-02-16
Posts: 18

Re: How to add videos into a sprite with many costumes

So... how do I make all the frames from the video, is there any way.

turkey3 wrote:

To make a video, you will need many costumes for a sprite. Each costume is a frame. Then, after the costumes are done you would use this script in the sprite:

When gf clicked
switch to [costume 1 v]
Repeat until <(costume #) = [# of last costume]> // so it ends with the last costume 
  Next costume
  Wait (0.05) seconds // number may vary depending on speed of video
To make the different costumes, instead of redrawing everything, just copy the last costume and edit the new copy. This script may vary depending on your game. Backgrounds probably will also be needed, but this script wouldn't be used for those.


http://gifsoup.com/imager.php?id=1085007&amp;t=o

Offline

 

#4 2012-05-13 11:27:10

TheCoolDog
Scratcher
Registered: 2011-01-29
Posts: 18

Re: How to add videos into a sprite with many costumes

arshad9 wrote:

So... how do I make all the frames from the video, is there any way.

turkey3 wrote:

To make a video, you will need many costumes for a sprite. Each costume is a frame. Then, after the costumes are done you would use this script in the sprite:

When gf clicked
switch to [costume 1 v]
Repeat until <(costume #) = [# of last costume]> // so it ends with the last costume 
  Next costume
  Wait (0.05) seconds // number may vary depending on speed of video
To make the different costumes, instead of redrawing everything, just copy the last costume and edit the new copy. This script may vary depending on your game. Backgrounds probably will also be needed, but this script wouldn't be used for those.

Yes, you could use a animating program called blender. Make the background a video, render and walla.(Harder than i made it sound xD)


-TheCoolDog-

Offline

 

#5 2012-05-13 14:27:50

arshad9
Scratcher
Registered: 2010-02-16
Posts: 18

Re: How to add videos into a sprite with many costumes

Is there any other way other than blender(preferably on scratch)

TheCoolDog wrote:

arshad9 wrote:

So... how do I make all the frames from the video, is there any other way.

turkey3 wrote:

To make a video, you will need many costumes for a sprite. Each costume is a frame. Then, after the costumes are done you would use this script in the sprite:

When gf clicked
switch to [costume 1 v]
Repeat until <(costume #) = [# of last costume]> // so it ends with the last costume 
  Next costume
  Wait (0.05) seconds // number may vary depending on speed of video
To make the different costumes, instead of redrawing everything, just copy the last costume and edit the new copy. This script may vary depending on your game. Backgrounds probably will also be needed, but this script wouldn't be used for those.

Yes, you could use a animating program called blender. Make the background a video, render and walla.(Harder than i made it sound xD)

Last edited by arshad9 (2012-05-13 15:10:29)


http://gifsoup.com/imager.php?id=1085007&amp;t=o

Offline

 

#6 2012-05-13 14:41:50

ManaUser
Scratcher
Registered: 2009-03-11
Posts: 100+

Re: How to add videos into a sprite with many costumes

On the costume menu, if you import an animated gif, it will turn each frame into a separate costume. You can probably find a tool for turning a video into a gif online, so that might be a good way.


http://i.imgur.com/SPYSM.gif http://i.imgur.com/t9k1Z.gif http://i.imgur.com/OwYVa.gif http://i.imgur.com/0qlZq.gif

Offline

 

#7 2012-05-13 15:09:10

arshad9
Scratcher
Registered: 2010-02-16
Posts: 18

Re: How to add videos into a sprite with many costumes

ManaUser wrote:

On the costume menu, if you import an animated gif, it will turn each frame into a separate costume. You can probably find a tool for turning a video into a gif online, so that might be a good way.

When you say  'gif' you mean gif soup right??????


http://gifsoup.com/imager.php?id=1085007&amp;t=o

Offline

 

#8 2012-05-13 15:19:17

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: How to add videos into a sprite with many costumes

arshad9 wrote:

ManaUser wrote:

On the costume menu, if you import an animated gif, it will turn each frame into a separate costume. You can probably find a tool for turning a video into a gif online, so that might be a good way.

When you say  'gif' you mean gif soup right??????

Yeah i think so


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#9 2012-05-13 18:50:31

ManaUser
Scratcher
Registered: 2009-03-11
Posts: 100+

Re: How to add videos into a sprite with many costumes

No. I meant Graphics Interchange Format, that is, a ".gif" file. GIFSoup would be an example of one of those online conversion tools. Anyway, the important part is that once you have an animated .gif file--wherever you get it--Scratch can automatically turn it into separate costumes for you.

Last edited by ManaUser (2012-05-13 18:58:29)


http://i.imgur.com/SPYSM.gif http://i.imgur.com/t9k1Z.gif http://i.imgur.com/OwYVa.gif http://i.imgur.com/0qlZq.gif

Offline

 

#10 2012-05-13 21:11:23

chanmanpartyman
Scratcher
Registered: 2011-05-30
Posts: 500+

Re: How to add videos into a sprite with many costumes

turkey3 wrote:

To make a video, you will need many costumes for a sprite. Each costume is a frame. Then, after the costumes are done you would use this script in the sprite:

when gf clicked
switch to costume [costume 1 v]
repeat until <(costume #) = [# of last costume]> // so it ends with the last costume 
  next costume
  wait (0.05) secs // number may vary depending on speed of video
To make the different costumes, instead of redrawing everything, just copy the last costume and edit the new copy. This script may vary depending on your game. Backgrounds probably will also be needed, but this script wouldn't be used for those.

Offline

 

Board footer