ScratchData LogoScratchData
Back to The_Scratch_Archive's profile

[Archive] List Tutorial

THThe_Scratch_Archive•Created November 4, 2022
[Archive] List Tutorial
0
0
5 views
View on Scratch

Description

Original Project Notes: *** Requires 1.3 to run *** This is a short tutorial on Lists. It is also an example of how to use lists to implement a small language. Press the Space bar to move to the next step. Technical Notes =========== I created a simple language for showing a dialog between a number of sprites. The language syntax is shown below. The script this project runs was written in an external text editor, then imported into the Tutorial Script list. Commands ======== There are 10 commands recognized. Each command has a prefix and suffix of "==" to help it stand out from the arguments that follow the command. Here is a short summary of the commands with their expected arguments listed after. Each argument must be on it's own line. ==COSTUME== set the costume and size of a given sprite 1 - sprite name as set in the Sprite Name local variable 2 - costume name or number 3 - size (percent) ==SHOW== ==HIDE== show or hide a given sprite 1 - sprite name as set in the Sprite Name local variable ==GLIDE== glide a sprite to a location 1 - sprite name as set in the Sprite Name local variable 2 - x coordinate of target location 3 - y coordinate of target location 4 - glide time in seconds ==POSITION== glide a sprite to one of 9 fixed positions in a grid numbered 1-9 with position 5 being the center of the screen. I use this a lot so I don't have to get too specific about locations. 1 - sprite name as set in the Sprite Name local variable 2 - location number 1-9 ==DIRECTION== set the angle of a given sprite 1 - sprite name as set in the Sprite Name local variable 2 - desired angle in degrees ==SAY== have a given sprite SAY something with a speech bubble 1 - sprite name as set in the Sprite Name local variable 2 - first line of text 3 - second line of text 4 - ....and so on ==CAT SAY== I found that the cat was saying a lot so I gave it it's own command. Just like ==SAY== but it only controls the cat 1 - first line of text 2 - second line of text 3 - ....and so on ==BACKGROUND== set the background 1 - background name or number ==ATTENTION== controls the position and direction of the arrow sprite for pointing things out 1 - x coordinate of target location 2 - y coordinate of target location 3 - desired angle in degrees Made by: @Paddle2Seer Upload date: Sunday, September 7, 2008 ID: https://scratch.mit.edu/projects/260208 Original thumbnail: https://uploads.scratch.mit.edu/get_image/project/260208_9999x9999.png

Project Details

Project ID756454343
CreatedNovember 4, 2022
Last ModifiedMarch 8, 2023
SharedNovember 4, 2022
Visibilityvisible
CommentsAllowed