Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » .gif doesn't actually animate and I don't know how to switch costumes. Or if I even need to.
- AnOldManTwo
-
43 posts
.gif doesn't actually animate and I don't know how to switch costumes. Or if I even need to.
Here’s my most recent version:
https://scratch.mit.edu/projects/1117932081/
My grandson is pretty darn smart. Loves technology. And the solar system and geography. Grumpa is a retired Network Engineer. Retired in 2008 if that gives y’all an idea of how old he is
Okay, I know, it’s rather immature, but so is my 8-year-old grandson. I’ve uploaded some gross sound effects and .gifs
I’ve done my best to indicate what I want to do in a couple of notes.
At the end of the first question, if Space Man Noah get the answer right, he gets a reward of a .gif of a dog pooping on its owner’s shirt and an accompanying soundtrack. (It’s not as bad as it sounds!!!) The .gif is hidden until it’s needed, but the 1st frame SHOWN of the .gif, is the last frame. It doesn’t play the movie at all.
Also, the next question pops up before the movie (would be) done playing. If it played.
Space man, here-on-in, known as Noah, has several costumes. One is of him and Hobbes taking a bow – when he gets the correct answer. Others are comic strips. These are rewards. I want to pick questions for which he’ll be rewarded. Not all of them.
EDIT: If it's easier for a person that can't sit still, won't shut-up, pain-in-the-buttocks, child, to simply cover the original background with a movie or comic strip, rather than it is to use show and hide, go for what a child will understand first.
Please note that as my handle suggests, I’m OLD. I know the goal here is to teach and to learn, but you’ll not be able to teach this old dog new tricks. PLEASE don’t tell me to add this code or that, I’ll not get it.
If someone could remix it so I can see what to do, I think I can take it from there. At least until I create another glitch.
Tia, Y’all!
https://scratch.mit.edu/projects/1117932081/
My grandson is pretty darn smart. Loves technology. And the solar system and geography. Grumpa is a retired Network Engineer. Retired in 2008 if that gives y’all an idea of how old he is
Okay, I know, it’s rather immature, but so is my 8-year-old grandson. I’ve uploaded some gross sound effects and .gifs
I’ve done my best to indicate what I want to do in a couple of notes.
At the end of the first question, if Space Man Noah get the answer right, he gets a reward of a .gif of a dog pooping on its owner’s shirt and an accompanying soundtrack. (It’s not as bad as it sounds!!!) The .gif is hidden until it’s needed, but the 1st frame SHOWN of the .gif, is the last frame. It doesn’t play the movie at all.
Also, the next question pops up before the movie (would be) done playing. If it played.
Space man, here-on-in, known as Noah, has several costumes. One is of him and Hobbes taking a bow – when he gets the correct answer. Others are comic strips. These are rewards. I want to pick questions for which he’ll be rewarded. Not all of them.
EDIT: If it's easier for a person that can't sit still, won't shut-up, pain-in-the-buttocks, child, to simply cover the original background with a movie or comic strip, rather than it is to use show and hide, go for what a child will understand first.
Please note that as my handle suggests, I’m OLD. I know the goal here is to teach and to learn, but you’ll not be able to teach this old dog new tricks. PLEASE don’t tell me to add this code or that, I’ll not get it.
If someone could remix it so I can see what to do, I think I can take it from there. At least until I create another glitch.
Tia, Y’all!
Last edited by AnOldManTwo (Jan. 9, 2025 04:56:34)
- theashbreather
-
88 posts
.gif doesn't actually animate and I don't know how to switch costumes. Or if I even need to.
The project… is blank. I don't see any of your code or sprites. Maybe you forgot to save?
- DragonPlusMaster
-
100+ posts
.gif doesn't actually animate and I don't know how to switch costumes. Or if I even need to.
Wrong project?
- DragonPlusMaster
-
100+ posts
.gif doesn't actually animate and I don't know how to switch costumes. Or if I even need to.
https://ezgif.com) but only 3 out of 5 work.Also, only a handful of .gifs even import. The 2 that do import are between 6 and 8 MB. The others are 14 MB to 140 MB but I understand there are no limits. I used the same operation on all the .gifs, (
In Scratch 3.0, all assets must be under 10 MB, and the project JSON must be under 5 MB.
- AnOldManTwo
-
43 posts
.gif doesn't actually animate and I don't know how to switch costumes. Or if I even need to.
Okay, here's the right one. Probably should re-post my question?
https://scratch.mit.edu/projects/1117932081/
What is the project JSON?
https://scratch.mit.edu/projects/1117932081/
What is the project JSON?
- hunterrocket
-
12 posts
.gif doesn't actually animate and I don't know how to switch costumes. Or if I even need to.
Ok. I found out why. In the sick dog costume, you forgot to make a loop to make the next costume. That is how the gif will move. Copy this exact code. I found out how much costumes there are. This should work
Last edited by hunterrocket (Jan. 9, 2025 05:36:48)
- theashbreather
-
88 posts
.gif doesn't actually animate and I don't know how to switch costumes. Or if I even need to.
The thing about gifs is they are split into costumes and not actual gifs when imported. So you will need to loop through every single costume to “play the gif.” Annoying, sure, but it is nice to have that control. Okay, here's the right one. Probably should re-post my question?
https://scratch.mit.edu/projects/1117932081/
What is the project JSON?
Json is a data format for files made readable for people. In scratch, the project json is a file that stores:
- all code
- information about sprites/audio/costumes
- any data values such as lists in the project
Last edited by theashbreather (Jan. 9, 2025 07:26:28)
- DragonPlusMaster
-
100+ posts
.gif doesn't actually animate and I don't know how to switch costumes. Or if I even need to.
It is the file size of the project. Okay, here's the right one. Probably should re-post my question?
https://scratch.mit.edu/projects/1117932081/
What is the project JSON?
Edit: oh wait I didn't see theashbreathers answer
Last edited by DragonPlusMaster (Jan. 9, 2025 14:11:41)
- AnOldManTwo
-
43 posts
.gif doesn't actually animate and I don't know how to switch costumes. Or if I even need to.
Ok. I found out why. In the sick dog costume, you forgot to make a loop to make the next costume. That is how the gif will move. Copy this exact code. I found out how much costumes there are. This should work
- theashbreather
-
88 posts
.gif doesn't actually animate and I don't know how to switch costumes. Or if I even need to.
Hi, I remixed your project and noticed that the timings were a little bit incorrect, but you were able to add the script. Here, I fixed it for you: https://scratch.mit.edu/projects/1118389223/
Last edited by theashbreather (Jan. 10, 2025 01:42:51)
- AnOldManTwo
-
43 posts
.gif doesn't actually animate and I don't know how to switch costumes. Or if I even need to.
Perfect, thanks! That I can work with.
How about my 2nd note? Some of Noah's costumes are, for example, him and his pet tiger (Hobbes) taking a bow. At some point, when he gets an answer right, I'd like to replace the backdrop with the bow, or a Calvin and Hobbes cartoon. I don't know how to hide it until I need to show it.
Again, thanks a LOT! He just got his first computer for Christmas. All the farting around noises are going to drive his family crazy. It's in the living room, and his parents have the password so he can't get on it when they're not home.
How about my 2nd note? Some of Noah's costumes are, for example, him and his pet tiger (Hobbes) taking a bow. At some point, when he gets an answer right, I'd like to replace the backdrop with the bow, or a Calvin and Hobbes cartoon. I don't know how to hide it until I need to show it.
Again, thanks a LOT! He just got his first computer for Christmas. All the farting around noises are going to drive his family crazy. It's in the living room, and his parents have the password so he can't get on it when they're not home.

- hunterrocket
-
12 posts
.gif doesn't actually animate and I don't know how to switch costumes. Or if I even need to.
Ok. I found out why. In the sick dog costume, you forgot to make a loop to make the next costume. That is how the gif will move. Copy this exact code. I found out how much costumes there are. This should work
Last edited by hunterrocket (Jan. 11, 2025 06:11:27)
- Discussion Forums
- » Help with Scripts
-
» .gif doesn't actually animate and I don't know how to switch costumes. Or if I even need to.