shadow_7283 wrote:
I was trying to shorten some giant scripts of mine, and ended up making it twice as long with custom blocks!
Hmm, that's not good. Could I see both versions? Or just an excerpt to explain why it got twice as long?
Cool! Are you going to make a stop at MIT?
Of course! The reason I'm here is the Scratch conference Thurs-Sat.
Are you going to shove a copy of the BYOB3 program in their faces shouting "IT WORKED! IT WORKED! IN YOUR FACE!" while cackling madly?
Now, now, we're all friends here. Anyway, they're well aware of what we're up to -- they scheduled Jens and me for an hour-long presentation on BYOB (most paper sessions are 1/2 hour) plus I'm doing a 1/2 hour on the Berkeley course we're developing that uses BYOB.
Anyway, I'm not getting in anyone's face until list operations are fast!
Offline
Well the thing about these scripts are, no matter what, they are going to be long. I'm trying to make a well functioning textbox for Web Wizard 2.0 (a Prism collab). Before I had tediously created and adjusted (at least three times) 72 copies of the same basic script. There were only slight predictable changes to each of these each time (ex. change the <key [] pressed?> block each time. However, it was almost impossible to edit without extreme lag and crash potential, even in BYOB3. So I decided to make a few general purpose blocks so that I could have only one repeat of the script mentioned above with the same functionality.
Naturally I began with a (key pressed) reporter block whose value was that of the key being pressed. That was 36 "If elses" stacked inside eachother by itself. Then I needed a way of turning my (key pressed) reports into capital letters so that when the up arrow key was pressed their value would be different than the lowercase letters. This meant creating a (CAPS []) reporter block. I couldn't think of anyway to add this without using brute coding, so one again I had 32 repeats of the same script. Then I needed a <key [] pressed?> block that would allow reporters in the drop down list space (hence my earlier question). This too, unfortunately required a bit of brute force code.
I finally managed to string it all together to get the result I wanted. Unfortunately it was much slower then my previous method, even though I used atomic on everything.
(By the way, this was all typed on an iPod touch, which is no small accomplishment)
Last edited by shadow_7283 (2010-08-09 08:59:40)
Offline
shadow_7283 wrote:
Well the thing about these scripts are, no matter what, they are going to be long.
Hmm. The ASCII CODE and ASCII AS LETTER blocks should help somewhat, but I agree, you need a (KEY PRESSED) reporter block that would ideally report an ASCII code plus 256 if ALT is down, etc.
Offline
Yeah...
Should we advertise BYOB3 in our signatures? I might be able to create an image or something.
Offline
shadow_7283 wrote:
Yeah...
Should we advertise BYOB3 in our signatures? I might be able to create an image or something.
We have an image!
But, sure, if you want. I don't really understand signature culture. But I'd feel honored to see BYOB in your sig. You can even make up your own image.
Offline
bharvey wrote:
shadow_7283 wrote:
Yeah...
Should we advertise BYOB3 in our signatures? I might be able to create an image or something.We have an image!
http://byob.berkeley.edu/gobo4.gif
But, sure, if you want. I don't really understand signature culture. But I'd feel honored to see BYOB in your sig. You can even make up your own image.
Now it should link to the main site.
Last edited by soupoftomato (2010-08-09 09:45:13)
Offline
i made a sig but how do i post it as a pic and in my signiture (with a link)
Last edited by TheExternal (2010-08-09 11:26:02)
Offline
TheExternal wrote:
i made a sig but how do i post it as a pic and in my signiture (with a link)
At the top of the forums click Profile, then choose Personality, and there is a box for a signature. Then do this:
<url=byob.berkeley.edu><img>image url</img></url>
Replace all the angle brackets with the square ones, that was the only was I could show the code instead of an actual image.
This should work, but I have a fever of 102 and I'm hallucinating Gobos, so don't blame me if it doesn't
Offline
fullmoon wrote:
TheExternal wrote:
i made a sig but how do i post it as a pic and in my signiture (with a link)
At the top of the forums click Profile, then choose Personality, and there is a box for a signature. Then do this:
Code:
<url=byob.berkeley.edu><img>image url</img></url>Replace all the angle brackets with the square ones, that was the only was I could show the code instead of an actual image.
Actually, you don't need angle brackets to prevent that. That's what Code areas are for.
Offline
ok... is it working? i can't see the pic because my browser is messed up (its not just pics)
Offline
TheExternal wrote:
ok... is it working? i can't see the pic because my browser is messed up (its not just pics)
I see an image placeholder down there but it looks like you have the URL wrong, because I can't see the picture itself.
Offline
TheExternal wrote:
ok... is it working?
This is weird; at first all I saw in your sig was the URL (as text), but when I copied the URL and pasted it into another browser window, and thereby saw your intended sig picture, and then went back to the Scratch forum page, now I see the picture! (With an extra "[/img]" after it.)
EDIT: I guess you changed something, because now it works perfectly.
Last edited by bharvey (2010-08-09 12:59:38)
Offline
fullmoon wrote:
This should work, but I have a fever of 102 and I'm hallucinating Gobos, so don't blame me if it doesn't
get well soon!
Offline
bharvey wrote:
TheExternal wrote:
ok... is it working?
This is weird; at first all I saw in your sig was the URL (as text), but when I copied the URL and pasted it into another browser window, and thereby saw your intended sig picture, and then went back to the Scratch forum page, now I see the picture! (With an extra "[/url]" after it.)
oh, that because i was updating my sig and i kept on messing up, so you probally got caught in the middle of it. LOL
Offline
Okay, how about this:
The thing is, it's not strictly true -- we haven't yet made sprites, costumes, etc. first class in 3.0. But it's our goal, so maybe it's okay to say it?
EDIT: Of course the background isn't beautiful like Shadow's sig...
Last edited by bharvey (2010-08-09 13:19:26)
Offline
bharvey wrote:
Sweet, I'm using it.
Anyway, I need to get started on a project in BYOB, I just don't know what.
Offline
bharvey wrote:
EDIT: Of course the background isn't beautiful like Shadow's sig...
Would you like me to fade out the edges for you? Add in a couple sun spots? Maybe add a shadow to the text and Gobo?
Last edited by shadow_7283 (2010-08-09 14:06:31)
Offline
shadow_7283 wrote:
Hmm... I tried to save a project and got this error message and result:
http://i33.tinypic.com/6fz0h3.png
Here is a link to a larger version.
After which everything I did gave me an error message. I went to presentation mode and back out to see if it would fix it, and then all I had was a blank screen.
You probably won't be able to reproduce it, but...
That's happened to me with the source before, a more common one is going to a position with around twenty digits, it can't handle it and just turns the stage into a large red square with an X in it (Squeak's way of saying that the drawing methods failed)
Offline
Is there anyway to recover Scratch after it happens?
Offline
nXIII wrote:
Restart?
Meaning not lose all your data?
Offline