Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

arrow_back GIF for your Glitch

Transcript

During the single episode, the characters experienced a glitch as if they were stuck inside a television program, with a poor broadcast signal, check it out.

In other news, the down in Elmoore has reached from sunlight broadcast issues, we assure you we are working on the problem, and so please bare with us while we try to.

Wait then why isn't it affecting us?

(upbeat music)

In this video, anime lost signal GIF, and make a Gumball story go off the air.

To start, select the GIF sprite.

It appears via sprites list, right now program it to show.

Click the purple Looks menu, click the show block and the sprite should appear.

It also displays over your animation, resize the GIF so it fits on the stage.

You may wanna drag the sprite towards the top of the sprite list.

When you upload a GIF as a sprite, Scratch breaks it up into separate costumes, or frames.

To see what this looks like, click the costumes tab and click several costumes.

Next, animate these costumes into a moving image.

To switch costumes, click the Code tab and select the Looks menu.

Click the next costume block a few times to cycle through the costumes, then drag it out.

Right now, you have to click the block to make the costume change, to make the costume change repeatedly, drag out a repeat block from the Control menu, and place it around the next costume block, click the code to test.

Great, it works, but only the first few costumes show.

To make all the costumes show, change the value in the repeat block to a larger number.

Click on the costumes tab, then scroll down to the bottom to see the total number of frames that make up the GIF.

Type that number into the repeat block, click the code to test, the code works, but the produce I just do the different costumes much faster than the episode, it's too fast!

To slow it down, add a pause between costume changes.

From Control, add a wait block under next costume, click your code to test.

Tinker with the values and the wait block to speed up, or slow down the animation.

This example uses 0.2, test again by clicking the code.

Nice, it works but the GIF doesn't start on the first costume.

To set a starting costume, add a switch costume to block, to the top of your block stack.

Then, select the first costume from the list.

Click it to try it out.

Great, next show the GIF at the right time in your story.

This example programs the GIF animation to appear between scenes.

Choose a sprite to broadcast the glitch.

To broadcast, means to send a message from one part of a program to another part by telling code to run.

This example uses Carmen to send the message.

You will use a broadcast block, to send a message telling the code to run.

Select Events, add the broadcast and wait block to the spot of your story, where you wanna start your animation.

The broadcast and wait block will run all the code it triggers, and wait until moving onto the next block.

In this example, the code will run before the backdrop switches, select the drop down, and name the message start GIF.

Now that the message is broadcasted, set up your GIF sprite to receive it.

To start, select the GIF sprite.

Add a when I receive block to the top of the block static.

Be sure the start GIF message is selected.

Click the flag to test.

Oh no!

The sprites are hidden behind the GIF, to fix this throw in the GIF to show only when it receives the broadcast at message.

From looks, drag out a high block and attach it to the end of the block stack, so the GIF hides after its code runs.

Then, add a show block under the when I receive block, so the GIF shows when it receives the broadcasted message.

Next, program the GIF to hide at the beginning of the project.

To do this, drag out a high block from the looks menu, and attach a one flag clicked block on top of it.

Click the flag to test again.

Awesome, it works.

Now it's your turn, use next costume, wait and repeat blocks to show the frames from the GIF in sequence.

Use a switch costume to block to start the GIF from the first frame.

Select a sprite who will trigger the animation, and add a broadcast and wait block to that sprite's code.

Add a when I receive block to the GIF sprite.

And finally add show, hide, and when flagged clicked blocks to control when the GIF appears.

Choose an Add-On
Place to Place
Use move blocks to add drama to the story
Hear It Happen
Create custom sounds to play randomly with the glitch
Even Glitchier
Make the glitch effect your backdrop
Make Them Jump
Program your characters to move with arrow keys
GIF for your Glitch
Upload a GIF and animate it to change your story
Costume Change
Use blocks to change your Sprite's appearance
arrow_backward Back
Next arrow_forward
Instructions
Draw your story toward a conclusion using dialogue, scene changes, or new characters.
Attributions
  • "Gumball | The Signal | Cartoon Network" by The Amazing World of Gumball (https://www.youtube.com/watch?v=CftA5oEXetE&t=0s&index=92&list=PL77ED97B132C66551) -- Licensed by Standard Youtube License (https://www.youtube.com/static?template=terms)