|First Seen:||1:31:16 PM 27/7/2020|
|Last Seen:||8:42:19 PM 30/8/2020|
oh please, I' letting new scratchers introduce themselves to me so I can check out their projects!lol
The New Scratcher Forum is used to new scratcher introduce themself. Not 4 Fun.
I tried to make some custom functions to display text but the code, which is simple, strangely doesn't work.
when stop clicked
I probably butchered some terminology in this explanationThe problem is that you're using the “text” variable, which only represents a value when it's used in the definition of the “write” function, in the script for the clone - you can't use a function parameter anywhere besides in that function. If you move the entire clone script into the definition of “write”, above “create clone of myself”, the letters print out fine (since the clone will inherit whatever state its parent sprite is in when it's created, meaning that it'll start out showing and switched to whatever costume it should be switched to).
Also: currently the repeat loop in your “write” function stops immediately upon reaching the last letter in “text”, meaning that the last letter doesn't get printed out. One way to fix this would be to replace “repeat until x = length of text” with “repeat (length of text)”, which ensures that the loop reaches each letter. Alternatively, you could change the initial x value to 0 and move the “change x by 1” to the beginning of the loop.
EDIT: nevermind. Please disregard this post.
I'm on a laggy, glitchy computer, so that might be it! Hmmmm, it's working fine for me. Are you sure you don't have your shift key jammed down or something? The rectangle tool only makes squares when shift is held down.
if you are a new scratcher(((((((((Welcome to scratch)::#ff0000)::#ff8000))::#ffff00)::#00ff00)::#)))::#ffffff)
set [ 1--01-0-2oe02oe] to [1-312-eo2-oe]