Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » I need help with an intro
- a-code-dude
-
Scratcher
13 posts
I need help with an intro
My thought was that 2 lines could come in and form the image below. But I'm not quite sure how to do that efficiently.
Hmmm… It says that the image is “unstable language”…?
It is also the profile image of @sad-dumpling (aka my other account)
Hmmm… It says that the image is “unstable language”…?
It is also the profile image of @sad-dumpling (aka my other account)
- a-code-dude
-
Scratcher
13 posts
I need help with an intro
I just want to sort of get a concept before I start
- Catscratcher07
-
Scratcher
1000+ posts
I need help with an intro
I just want to sort of get a concept before I startThe way this form works, you should try doing something yourself before asking for help, then if you need to ask when you need help with a specific problem.
- ItBeJC
-
Scratcher
1000+ posts
I need help with an intro
WHat I would do is have one line come in from the left using a pre-determined route such as this:
when green flag clickedAfter this, I don't have an efficient method that doesn't involve animation, so what I might do is make a temporary script that records the mouse position. This way, I could use the mouse to draw the logo and then when I want the logo rendered, I just have to go to each item in the list. The scripts that record the mouse position might look like this:
pen up
go to x: (-240) y: (0)
pen down
repeat (24)
change x by (10) // The sprite will then be at 0,0 because 10 * 24 = 240 and -240 + 240 = 0
end
when green flag clickedThen use this script to draw the logo. If you don't like your drawing, you can always restart and try again. After you've drawn the desired logo using the above scripts, delete them, and then you can add this:
delete (all v) of [MouseCoords v]
forever
if <key [Space v] pressed?> then
add (mouse x) to [MouseCoords v]
add (mouse y) to [MouseCoords v]
end
end
define Render Logo
pen up
go to x: (item (1 v) of [MouseCoords v] :: list) y: (item (2 v) of [MouseCoords v] :: list)
pen down
set [index v] to [2] // For this sprite only
repeat (((length of [MouseCoords v] :: list) / (2)) - (1))
change [index v] by (2)
go to x: (item ((index) - (1)) of [MouseCoords v] :: list) y: (item (index) of [MouseCoords v] :: list)
end
- a-code-dude
-
Scratcher
13 posts
I need help with an intro
Thank you so much. I'll make sure to give credit and follow
- Discussion Forums
- » Help with Scripts
-
» I need help with an intro


