Discuss Scratch

bert94
New Scratcher
5 posts

Change text

Hi,

I'm learning Scratch by editing existing games, like Pixel Jump. I want to change the text of the ‘mini-tutorial’ in Pixel Jump, but I can't find this text in the editor. How can I change text of the game in the editor?

Link to the original game: https://scratch.mit.edu/projects/17205433/

Screenshots of the text in the game:

https://postimg.org/image/cnm6jw1qp

https://postimg.org/image/etghee575/

Last edited by bert94 (June 10, 2017 17:56:08)

EH7meow
Scratcher
100+ posts

Change text

I believe it's the first 5 costumes of the sprite named ‘tutorial’. It's not a Scratch font though, so it may be hard to edit.
bert94
New Scratcher
5 posts

Change text

EH7meow wrote:

I believe it's the first 5 costumes of the sprite named ‘tutorial’. It's not a Scratch font though, so it may be hard to edit.
Thx! Found it! It's not a Scratch font, but an image. I deleted the image and put some text in the costume ('test'). After that change the tutorial doesn't show up anymore; the game starts immediately.

What am I doing wrong? Is it not possible to simply change a costume?

See: https://postimg.org/image/6v9clv3ud/
EH7meow
Scratcher
100+ posts

Change text

By the looks of thing, that project keeps track of whether you have finished the tutorial/intro or not. Even if you play the project without your change, if you finish the tutorial and then click the green flag, it will skip the tutorial.

I'm think that if you saved your change and reloaded the page then your change would appear.
bert94
New Scratcher
5 posts

Change text

EH7meow wrote:

By the looks of thing, that project keeps track of whether you have finished the tutorial/intro or not. Even if you play the project without your change, if you finish the tutorial and then click the green flag, it will skip the tutorial.

I'm think that if you saved your change and reloaded the page then your change would appear.
I've saved it, restarted the offline editor, but it keeps skipping the tutorial . I've uploaded my edit: https://scratch.mit.edu/projects/165510571/. I think it's a beginner's mistake, but I don't know what I'm doing wrong.

Last edited by bert94 (June 10, 2017 19:23:23)

EH7meow
Scratcher
100+ posts

Change text

I just tested it, if you set the ‘tutorial’ or ‘intro’ variable to one, and then click the green flag, then the intro/tutorial will appear.

The trick that the author has used is to set to ‘tutorial’ or ‘intro’ to one by default, so that it is one when you load in, but then when it runs it sets itself to zero. Clicking the green flag doesn't reset ‘tutorial’ or ‘intro’ to zero, so that means it'll only run the first time you load in. If you want to make a remix with new tutorial text, then what you'll have to do is, before you publish, is just manually click the following script:

set [tutorial v] to [1]
set [intro v] to [1]

and then save your project for the last time, but you can't then play it in the editor again because that will reset the variables to zero.
bert94
New Scratcher
5 posts

Change text

Thank you very much for your help! Where do I need to place this script in the code ? I'm new to Scratch and I'm really doing my best to find it by myself, but I can't find where to place it.
EH7meow
Scratcher
100+ posts

Change text

You don't want to place it with any other blocks, just alone, then you can click them (this will trigger a script once, but won't make it triggerable when you play the project).

As I said though, you can't then play the game in the editor again as that will reset the variables to 0 and they will be saved, if you want to play it again you will have to play it from the project page. As a result, I recommend triggering this script be the last thing you do in your project, otherwise you will have to constantly switch between the editor and project page to test.
bert94
New Scratcher
5 posts

Change text

Thanks a lot !! I'll try it when I end my project!
mateomateoburgos
Scratcher
1 post

Change text

Make a Project that you got all of the Old Scratch Fonts in 2012 (the year that font where different)

Powered by DjangoBB